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
130 131 132 |
# File 'lib/httpx/adapters/faraday.rb', line 130 def response_on_data=(value) @response_on_data = value end |
Instance Method Details
#response=(response) ⇒ Object
132 133 134 135 136 137 138 139 140 |
# File 'lib/httpx/adapters/faraday.rb', line 132 def response=(response) super return unless @response return if @response.is_a?(::HTTPX::ErrorResponse) @response.body.on_data = @response_on_data end |