Instance Property

mainDocumentURL

The main document URL associated with this request.

Declaration

var mainDocumentURL: URL? { get set }

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 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software