Module: Faraday::Adapter::HTTPX::OnDataPlugin::RequestMethods
- Defined in:
- lib/httpx/adapters/faraday.rb
Instance Attribute Summary collapse
-
#response_on_data ⇒ Object
writeonly
Sets the attribute response_on_data.
Instance Method Summary collapse
Instance Attribute Details
#response_on_data=(value) ⇒ Object (writeonly)
Sets the attribute response_on_data
80 81 82 |
# File 'lib/httpx/adapters/faraday.rb', line 80 def response_on_data=(value) @response_on_data = value end |
Instance Method Details
#response=(response) ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/httpx/adapters/faraday.rb', line 82 def response=(response) super return if response.is_a?(::HTTPX::ErrorResponse) response.body.on_data = @response_on_data end |