lib/ezclient/request.rb in ezclient-0.16.0 vs lib/ezclient/request.rb in ezclient-1.0.0
- old
+ new
@@ -55,9 +55,13 @@
def headers
http_request.headers.to_h
end
+ def add_headers!(new_headers)
+ http_request.headers.merge!(new_headers)
+ end
+
def http_options
@http_options ||= http_client.default_options.merge(ssl_context: options[:ssl_context])
end
private