Instance Property


The request body as an input stream.


var httpBodyStream: InputStream? { get set }


The request body of the receiver will be this input stream. The entire contents of the stream will be sent as the body, as in an HTTP POST request. The input stream should be unopened and the receiver will take over as the stream’s delegate.

Setting a body stream clears any data in httpBody. 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 httpBody: Data?

The request body.

var mainDocumentURL: URL?

The main document URL.