public class NSURLResponse extends NSObject
Modifier and Type | Field and Description |
---|---|
static long |
UnknownLength
The length of URL is unknown.
|
Constructor and Description |
---|
NSURLResponse(NSURL URL,
String MIMEType,
int expectedContentLength,
String textEncodingName)
Constructs a NSURLResponse object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
long |
expectedContentLength()
Returns the expected length of the response.
|
String |
MIMEType()
Returns the MIME type of the response.
|
String |
textEncodingName()
Returns the name of the text encoding that is used.
|
NSURL |
URL()
Returns a default NSURL object.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static final long UnknownLength
public NSURLResponse(NSURL URL, String MIMEType, int expectedContentLength, String textEncodingName)
URL
- The URL of the new NSURLResponse.MIMEType
- The MIME type.expectedContentLength
- The content length.textEncodingName
- The text encoding name.public NSURL URL()
public String MIMEType()
public long expectedContentLength()
public String textEncodingName()
Copyright © 2020. All rights reserved.