Class: Faraday::RequestOptions

Inherits:
Object
  • Object
show all
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



9
10
11
12
13
14
15
# File 'lib/faraday/options/request_options.rb', line 9

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/faraday/options/request_options.rb', line 17

def stream_response?
  on_data.is_a?(Proc)
end