mirror of
https://github.com/lostisland/faraday.git
synced 2025-12-09 00:02:49 -05:00
Merge pull request #959 from lostisland/docs-connection-overload
document both uses of Connection#options
This commit is contained in:
commit
a8cd68e18f
@ -212,14 +212,14 @@ module Faraday
|
|||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
# @!method options(url = nil, params = nil, headers = nil)
|
# @overload options()
|
||||||
# Makes an OPTIONS HTTP request without a body.
|
# Returns current Connection options.
|
||||||
# @!scope class
|
|
||||||
#
|
#
|
||||||
# @param url [String] The optional String base URL to use as a prefix for
|
# @overload options(url, params = nil, headers = nil)
|
||||||
# all requests. Can also be the options Hash.
|
# Makes an OPTIONS HTTP request to the given URL.
|
||||||
# @param params [Hash] Hash of URI query unencoded key/value pairs.
|
# @param url [String] String base URL to sue as a prefix for all requests.
|
||||||
# @param headers [Hash] unencoded HTTP header key/value pairs.
|
# @param params [Hash] Hash of URI query unencoded key/value pairs.
|
||||||
|
# @param headers [Hash] unencoded HTTP header key/value pairs.
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# conn.options '/items/1'
|
# conn.options '/items/1'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user