This is the HTTP::Request class.
$req = Request($client: Client, $url: Str, $httpMethod: Method)
HTTP request objects generally are not created directly. Instead, use the
methods provided by the Client
class.
-
client: Client - An HTTP::Client, representing the user agent.
-
url: Str - HTTP URL to request.
-
httpMethod: Method - Request HTTP method.
$req.connect()
Initializes the asynchronous HTTP connection.
Afterward, either the connected
or error
event will be called.
$req.connected()
Hook. Called when the connection opens. May be called multiple times if the request is redirected or retried.
$req.redirect()
Hook. Called when the request was redirected by an HTTP location header.
$req.error()
Hook. Called when a connection error occurs.
$req.response()
Hook. Called when an HTTP response is constructed.
End of the HTTP::Request class.
This file was generated automatically by the Ferret compiler from Request.frt.