-
The method of the request.
Declaration
Swift
let method: Method -
The requested URL.
Declaration
Swift
let url: URL -
HTTP options.
Declaration
Swift
let options: String? -
Initialize an HTTP request.
Declaration
Parameters
methodThe request’s HTTP method.
urlThe requested URL.
headersHeaders of the request.
bodyAn optional body of the request.
optionsOptional HTTP options.
-
Construct a HTTP CONNECT request for establishing TCP tunnels through HTTP proxy server, which supports this.
Declaration
Parameters
targetThe target of the request, i.e., the server to which the tunnel should be established.
proxyThe proxy server, through which the tunnel should be established.
headersThe headers of the request.
Return Value
The request,
nilif arguments are invalid. -
Compose a request into date that can be sent to the HTTP server.
Declaration
Swift
var composed: Data { get }Return Value
The composed request.
View on GitHub
Request Class Reference