We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee4977 commit de63561Copy full SHA for de63561
lib/async/http/internet.rb
@@ -47,6 +47,14 @@ def client_for(endpoint)
47
end
48
49
50
+ # Make a request to the internet with the given `method` and `url`.
51
+ #
52
+ # If you provide non-frozen headers, they may be mutated.
53
54
+ # @parameter method [String] The request method, e.g. `GET`.
55
+ # @parameter url [String] The URL to request, e.g. `https://www.codeotaku.com`.
56
+ # @parameter headers [Hash | Protocol::HTTP::Headers] The headers to send with the request.
57
+ # @parameter body [String | Protocol::HTTP::Body] The body to send with the request.
58
def call(method, url, headers = nil, body = nil)
59
endpoint = Endpoint.parse(url)
60
client = self.client_for(endpoint)
0 commit comments