You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/protocol/http/request.rb
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,17 @@ module HTTP
25
25
classRequest
26
26
prependBody::Reader
27
27
28
+
# Initialize the request.
29
+
#
30
+
# @parameter scheme [String | Nil] The request scheme, usually `"http"` or `"https"`.
31
+
# @parameter authority [String | Nil] The request authority, usually a hostname and port number, e.g. `"example.com:80"`.
32
+
# @parameter method [String | Nil] The request method, usually one of `"GET"`, `"HEAD"`, `"POST"`, `"PUT"`, `"DELETE"`, `"CONNECT"` or `"OPTIONS"`, etc.
33
+
# @parameter path [String | Nil] The request path, usually a path and query string, e.g. `"/index.html"`, `"/search?q=hello"`, etc.
34
+
# @parameter version [String | Nil] The request version, usually `"http/1.0"`, `"http/1.1"`, `"h2"`, or `"h3"`.
35
+
# @parameter headers [Headers] The request headers, usually containing metadata associated with the request such as the `"user-agent"`, `"accept"` (content type), `"accept-language"`, etc.
36
+
# @parameter body [Body::Readable] The request body.
37
+
# @parameter protocol [String | Array(String) | Nil] The request protocol, usually empty, but occasionally `"websocket"` or `"webtransport"`.
38
+
# @parameter interim_response [Proc] A callback which is called when an interim response is received.
0 commit comments