Instance Property

mainDocumentURL

The main document URL associated with the request.

Declaration

var mainDocumentURL: URL? { get }

Discussion

This URL is used for the cookie “same domain as main document” policy.

See Also

Accessing Request Components

var httpMethod: String?

The HTTP request method.

var url: URL?

The URL being requested.

var httpBody: Data?

The request body.

var httpBodyStream: InputStream?

The request body as an input stream.