NSHTTPURLResponse Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in iOS 2.0 and later. |
| Companion guide | |
| Declared in | NSURLResponse.h |
Overview
An NSHTTPURLResponse object represents a response to an HTTP URL load request. It’s a subclass of NSURLResponse that provides methods for accessing information specific to HTTP protocol responses.
Adopted Protocols
Class Methods
localizedStringForStatusCode:
Returns a localized string corresponding to a specified HTTP status code.
Parameters
- statusCode
The HTTP status code.
Return Value
A localized string suitable for displaying to users that describes the specified status code.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
NSURLResponse.hInstance Methods
allHeaderFields
Returns all the HTTP header fields of the receiver.
Return Value
A dictionary containing all the HTTP header fields of the receiver. By examining this dictionary clients can see the “raw” header information returned by the HTTP server.
Availability
- Available in iOS 2.0 and later.
Declared In
NSURLResponse.hstatusCode
Returns the receiver’s HTTP status code.
Return Value
The receiver’s HTTP status code.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
NSURLResponse.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)