Up
Authors
Richard Frith-Macdonald (rfm@gnu.org
)
Date: Generated at 2024-11-07 16:52:01 -0500
Copyright: (C) 2006 Software Foundation, Inc.
class_NSHTTPURLResponse
NSURLResponse
NSURLResponse
NSHTTPURLResponse
NSHTTPURLResponse
NSURLResponse->NSHTTPURLResponse
Declared in:
Foundation/NSURLResponse.h
Availability: MacOS-X 10.2.0
HTTP specific additions to an NSURLResponse
+ (
NSString *)
localizedStringForStatusCode: (
NSInteger )statusCode;
Availability: MacOS-X 10.2.0
Returns a string representation of a status code.
- (
NSDictionary *)
allHeaderFields ;
Availability: MacOS-X 10.2.0
Returns a dictionary containing all the HTTP header
fields.
- (
NSInteger )
statusCode ;
Availability: MacOS-X 10.2.0
Returns the HTTP status code for the response.
class_NSURLResponse
NSObject
NSObject
NSURLResponse
NSURLResponse
NSObject->NSURLResponse
p_NSCopying
NSCopying
p_NSCopying->NSURLResponse
p_NSCoding
NSCoding
p_NSCoding->NSURLResponse
Declared in:
Foundation/NSURLResponse.h
Conforms to:
NSCoding
NSCopying
Availability: MacOS-X 10.2.0
The response to an NSURLRequest
Instance Variables
- (
NSString *)
MIMEType ;
Availability: MacOS-X 10.2.0
Returns the receiver's MIME type.
- (
NSURL *)
URL ;
Availability: MacOS-X 10.2.0
Returns the receiver's URL.
- (long long)
expectedContentLength ;
Availability: MacOS-X 10.2.0
Returns the expected content length of the receiver
or -1 if there is no idea of what the content length
might be. This value is advisory, not a
definitive length.
- (id)
initWithURL: (
NSURL *)URL
MIMEType: (
NSString *)MIMEType
expectedContentLength: (
NSInteger )length
textEncodingName: (
NSString *)name;
Availability: MacOS-X 10.2.0
Initialises the receiver with the
URL , MIMEType , expected
length and text encoding name
provided.
- (id)
initWithURL: (
NSURL *)URL
statusCode: (
NSInteger )statusCode
HTTPVersion: (
NSString *)HTTPVersion
headerFields: (
NSDictionary *)headerFields;
Availability: MacOS-X 10.7.0
Initialises the receiver with the
URL , statusCode ,
HTTPVersion , and headerFields
provided.
- (
NSString *)
suggestedFilename ;
Availability: MacOS-X 10.2.0
Returns a suggested file name for storing the
response data, with suggested names being found in
the following order:
content-disposition header
last path component of URL
host name from URL
'unknown'
If possible, an extension based on the MIME type of the
response is also appended.
The result
should always be a valid file name.
- (
NSString *)
textEncodingName ;
Availability: MacOS-X 10.2.0
Returns the name of the character set used where
response data is text
Instance Variables for NSURLResponse Class
@protected void* _NSURLResponseInternal ;
Availability: MacOS-X 10.2.0
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private , it is
intended for internal use within the package, and
you should not use the variable in other code.
Up