Class: SearchFlip::HTTPClient::Request Private
- Inherits:
-
Object
- Object
- SearchFlip::HTTPClient::Request
- Defined in:
- lib/search_flip/http_client.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #headers_hash ⇒ Object private
Instance Method Summary collapse
- #headers(hash = {}) ⇒ Object private
Instance Attribute Details
#headers_hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/search_flip/http_client.rb', line 11 def headers_hash @headers_hash end |
Instance Method Details
#headers(hash = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 |
# File 'lib/search_flip/http_client.rb', line 13 def headers(hash = {}) dup.tap do |request| request.headers_hash = (request.headers_hash || {}).merge(hash) end end |