class Faraday::Connection
def options(*args)
-
(Faraday::Response)
-
Other tags:
- Yield: - for further request customizations
Parameters:
-
headers
(Hash, nil
) -- unencoded HTTP header key/value pairs. -
params
(Hash, nil
) -- Hash of URI query unencoded key/value pairs. -
url
(String, URI, nil
) -- String base URL to sue as a prefix for all requests.
Overloads:
-
options(url, params = nil, headers = nil)
-
options()
def options(*args) return @options if args.empty? url, params, headers = *args run_request(:options, url, nil, headers) do |request| request.params.update(params) if params yield request if block_given? end end