lib/restful_resource/base.rb in restful_resource-2.13.4 vs lib/restful_resource/base.rb in restful_resource-2.14.0

- old
+ new

@@ -10,11 +10,13 @@ cache_store: nil, instrumentation: {}, timeout: nil, open_timeout: nil, faraday_config: nil, - faraday_options: {}) + faraday_options: {}, + default_headers: {} + ) @base_url = URI.parse(base_url) @http = RestfulResource::HttpClient.new(username: username, password: password, @@ -23,10 +25,11 @@ cache_store: cache_store, timeout: timeout, open_timeout: open_timeout, instrumentation: instrumentation, faraday_config: faraday_config, - faraday_options: faraday_options + faraday_options: faraday_options, + default_headers: default_headers ) end def self.resource_path(url) @resource_path = url