Instance Property


The request body.


var httpBody: Data? { get set }


The request body is sent as the message body of the request, as in an HTTP POST request. Setting the HTTP body data clears any input stream in httpBodyStream. These values are mutually exclusive.

See Also

Accessing Request Components

var httpMethod: String

The HTTP request method.

var url: URL?

The URL being requested.

var httpBodyStream: InputStream?

The request body as an input stream.

var mainDocumentURL: URL?

The main document URL.