Instance Property

httpMethod

The HTTP request method.

Declaration

var httpMethod: String? { get }

Discussion

The default HTTP method is “GET”.

See Also

Accessing Request Components

var url: URL?

The URL being requested.

var httpBody: Data?

The request body.

var httpBodyStream: InputStream?

The request body as an input stream.

var mainDocumentURL: URL?

The main document URL associated with the request.