Instance Property

HTTPBodyStream

The request body as an input stream.

Declaration

@property(readonly, retain) NSInputStream *HTTPBodyStream;

Discussion

nil if the body stream has not been set. The returned stream is for examination only—it is not safe to manipulate the stream in any way.

The receiver will have either an HTTP body or an HTTP body stream, only one may be set for a request. A HTTP body stream is preserved when copying an NSURLRequest object, but is lost when a request is archived using the NSCoding protocol.

See Also

Accessing Request Components

HTTPMethod

The HTTP request method.

URL

The URL being requested.

HTTPBody

The request body.

mainDocumentURL

The main document URL associated with the request.