public class NSHTTPURLResponse extends NSURLResponse
UnknownLength| Constructor and Description |
|---|
NSHTTPURLResponse(NSURL URL,
int statusCode,
String HTTPVersion,
Map<String,? extends Object> headerFields)
Constructs a NSHTTPURLResponse object with the specified parameter
values.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,? extends Object> |
allHeaderFields()
Returns all the HTTP header fields of this NSHTTPURLResponse object.
|
static String |
localizedStringForStatusCode(int statusCode)
Returns the String representation of the Status code based on RFC 2616
|
int |
statusCode()
Returns the HTTP status code of this NSHTTPURLResponse object.
|
expectedContentLength, MIMEType, textEncodingName, URLaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic NSHTTPURLResponse(NSURL URL, int statusCode, String HTTPVersion, Map<String,? extends Object> headerFields)
URL - The URL of the NSHTTPURLResponse object.statusCode - The status code of the NSHTTPURLResponse object.HTTPVersion - The HTTP version of the NSHTTPURLResponse object.headerFields - The HTTP header fields of the NSHTTPURLResponse
object.public int statusCode()
public static String localizedStringForStatusCode(int statusCode)
statusCode - The HTTP Status code based on RFC 2616Copyright © 2020. All rights reserved.