Class: Faraday::RequestOptions
- Inherits:
-
Object
- Object
- Faraday::RequestOptions
- Defined in:
- lib/faraday/options/request_options.rb
Overview
RequestOptions contains the configurable properties for a Faraday request.
Instance Method Summary collapse
Instance Method Details
#[]=(key, value) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/faraday/options/request_options.rb', line 10 def []=(key, value) if key && key.to_sym == :proxy super(key, value ? ProxyOptions.from(value) : nil) else super(key, value) end end |
#stream_response? ⇒ Boolean
18 19 20 |
# File 'lib/faraday/options/request_options.rb', line 18 def stream_response? on_data.is_a?(Proc) end |