Class: Faraday::Env
- Defined in:
- lib/faraday/options/env.rb
Instance Attribute Summary collapse
-
#body ⇒ String
string.
-
#method ⇒ Symbol
HTTP method (
:get
,:post
). -
#parallel_manager ⇒ Object
Sent if the connection is in parallel mode.
- #params ⇒ Hash
- #reason_phrase ⇒ String
-
#request ⇒ Hash
Options for configuring the request.
-
#request_headers ⇒ Hash
HTTP Headers to be sent to the server.
- #response ⇒ Response
-
#response_headers ⇒ Hash
HTTP headers from the server.
-
#ssl ⇒ Hash
Options for configuring SSL requests.
-
#status ⇒ Integer
HTTP response status code.
-
#url ⇒ URI
URI instance for the current request.
Method Summary
Methods inherited from Options
#[], attribute_options, #clear, #deep_dup, #delete, #each, #each_key, #each_value, #empty?, #fetch, fetch_error_class, from, #inspect, #key?, #keys, memoized, memoized_attributes, #merge, #merge!, options, options_for, #symbolized_key_set, #to_hash, #update, #value?, #values_at
Instance Attribute Details
#method ⇒ Symbol
Returns HTTP method (:get
, :post
).
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |
#parallel_manager ⇒ Object
Returns sent if the connection is in parallel mode.
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |
#request ⇒ Hash
Options for configuring the request.
:timeout
- time limit for the entire request (Integer in seconds):open_timeout
- time limit for just the connection phase (e.g. handshake) (Integer in seconds):read_timeout
- time limit for the first response byte received from the server (Integer in seconds):write_timeout
- time limit for the client to send the request to the server (Integer in seconds):on_data
- Proc for streaming:proxy
- Hash of proxy options:uri
- Proxy server URI:user
- Proxy server username:password
- Proxy server password
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |
#request_headers ⇒ Hash
Returns HTTP Headers to be sent to the server.
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |
#response_headers ⇒ Hash
Returns HTTP headers from the server.
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |
#ssl ⇒ Hash
Returns options for configuring SSL requests.
52 |
# File 'lib/faraday/options/env.rb', line 52 class Env < Options; end |