Class

NSURLResponse

The metadata associated with the response to a URL load request, independent of protocol and URL scheme.

Overview

The related NSHTTPURLResponse class is a commonly used subclass of NSURLResponse whose objects represent a response to an HTTP URL load request and store additional protocol-specific information such as the response headers. Whenever you make an HTTP request, the NSURLResponse object you get back is actually an instance of the NSHTTPURLResponse class.

Topics

Creating a response

initWithURL:MIMEType:expectedContentLength:textEncodingName:

Returns an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values.

Getting the response properties

expectedContentLength

The expected length of the response’s content.

suggestedFilename

A suggested filename for the response data.

MIMEType

The MIME type of the response.

textEncodingName

The name of the text encoding provided by the response’s originating source.

URL

The URL for the response.

Constants

Relationships

Inherits From

See Also

Requests and Responses

NSURLRequest

A URL load request that is independent of protocol or URL scheme.

NSMutableURLRequest

A mutable URL load request that is independent of protocol or URL scheme.

NSHTTPURLResponse

The metadata associated with the response to an HTTP protocol URL load request.