Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/Foundation.framework |
Availability | Available in Mac OS X v10.2 with Safari 1.0 installed. Available in Mac OS X v10.2.7 and later. |
Companion guide | |
Declared in | NSURLResponse.h |
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.
Returns a localized string corresponding to a specified HTTP status code.
+ (NSString *)localizedStringForStatusCode:(NSInteger)statusCode
The HTTP status code.
A localized string suitable for displaying to users that describes the specified status code.
NSURLResponse.h
Returns all the HTTP header fields of the receiver.
- (NSDictionary *)allHeaderFields
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.
NSURLResponse.h
Returns the receiver’s HTTP status code.
- (NSInteger)statusCode
The receiver’s HTTP status code.
NSURLResponse.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)