public class NSURLRequest extends NSObject
Constructor and Description |
---|
NSURLRequest(NSURL url)
Constructs a URL request for the specified URL.
|
NSURLRequest(NSURL url,
int NSURLRequestCachePolicy,
double timeoutInterval)
Constructs a URL request for the specified URL, cache policy and timeout
interval.
|
Modifier and Type | Method and Description |
---|---|
int |
cachePolicy()
Returns the cache policy of this URL request.
|
boolean |
HTTPShouldHandleCookies()
Returns a Boolean that defines whether cookies are handled by default for
this request.
|
static NSURLRequest |
requestWithURL(NSURL theURL)
Constructs and returns a URL request for the specified URL.
|
static NSURLRequest |
requestWithURL(NSURL url,
int NSURLRequestCachePolicy,
double timeoutInterval)
Constructs and returns a URL request with specified parameter values for
cache policy and timeout interval.
|
double |
timeoutInterval()
Returns the timeout interval of the receiver expressed in seconds.
|
String |
toString() |
NSURL |
URL()
Returns the URL of this request.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public NSURLRequest(NSURL url)
url
- The URL that is requested.public NSURLRequest(NSURL url, int NSURLRequestCachePolicy, double timeoutInterval)
url
- The URL that is requested.NSURLRequestCachePolicy
- The cache policy of the receiver.timeoutInterval
- The time interval of the request.public static NSURLRequest requestWithURL(NSURL theURL)
theURL
- The URL that is requested.public static NSURLRequest requestWithURL(NSURL url, int NSURLRequestCachePolicy, double timeoutInterval)
url
- The URL that is requested.NSURLRequestCachePolicy
- The cache policy of the receiver.timeoutInterval
- The time interval of the request.public NSURL URL()
public int cachePolicy()
public double timeoutInterval()
public boolean HTTPShouldHandleCookies()
Copyright © 2020. All rights reserved.