Instance Property

httpMethod

The HTTP request method.

Declaration

var httpMethod: String? { get set }

Discussion

The default HTTP method is “GET”.

See Also

Accessing Request Components

var url: URL?

The URL of the request.

var httpBody: Data?

The data sent as the message body of a request, such as for an HTTP POST request.

var httpBodyStream: InputStream?

The stream used to deliver the HTTP body.

var mainDocumentURL: URL?

The main document URL associated with this request.