_delegate;
Availability: MacOS-X 10.9.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.
@protected NSOperationQueue* _delegateQueue;
Availability: MacOS-X 10.9.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.
@protected GSMultiHandle* _multiHandle;
Availability: MacOS-X 10.9.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.
@protected NSString* _sessionDescription;
Availability: MacOS-X 10.9.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.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSCopying
Availability: MacOS-X 10.9.0
Description forthcoming.
Instance Variables
Method summary
- (
NSDictionary*)
HTTPAdditionalHeaders;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSHTTPCookieStorage*)
HTTPCookieStorage;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSInteger)
HTTPMaximumConnectionLifetime;
Availability: MacOS-X 10.9.0
Permits a session to be configured so that older
connections are reused. A value of zero or less
uses the default behavior where connections are reused
as long as they are not older than 118
seconds, which is reasonable for the vast majority
if situations.
- (
NSInteger)
HTTPMaximumConnectionsPerHost;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (BOOL)
HTTPShouldSetCookies;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (BOOL)
HTTPShouldUsePipelining;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLCache*)
URLCache;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSString*)
identifier;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSArray*)
protocolClasses;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPAdditionalHeaders: (
NSDictionary*)headers;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPCookieAcceptPolicy: (
NSHTTPCookieAcceptPolicy)policy;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPCookieStorage: (
NSHTTPCookieStorage*)storage;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPMaximumConnectionLifetime: (
NSInteger)n;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPMaximumConnectionsPerHost: (
NSInteger)n;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPShouldSetCookies: (BOOL)flag;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setHTTPShouldUsePipelining: (BOOL)flag;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setRequestCachePolicy: (
NSURLRequestCachePolicy)policy;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setURLCache: (
NSURLCache*)cache;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setURLCredentialStorage: (
NSURLCredentialStorage*)storage;
Availability: MacOS-X 10.9.0
Description forthcoming.
Instance Variables for NSURLSessionConfiguration Class
@protected NSDictionary* _HTTPAdditionalHeaders;
Availability: MacOS-X 10.9.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.
@protected NSHTTPCookieAcceptPolicy _HTTPCookieAcceptPolicy;
Availability: MacOS-X 10.9.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.
@protected NSHTTPCookieStorage* _HTTPCookieStorage;
Availability: MacOS-X 10.9.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.
@protected NSInteger _HTTPMaximumConnectionLifetime;
Availability: MacOS-X 10.9.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.
@protected NSInteger _HTTPMaximumConnectionsPerHost;
Availability: MacOS-X 10.9.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.
@protected BOOL _HTTPShouldSetCookies;
Availability: MacOS-X 10.9.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.
@protected BOOL _HTTPShouldUsePipelining;
Availability: MacOS-X 10.9.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.
@protected NSURLCache* _URLCache;
Availability: MacOS-X 10.9.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.
@protected NSURLCredentialStorage* _URLCredentialStorage;
Availability: MacOS-X 10.9.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.
@protected NSString* _identifier;
Availability: MacOS-X 10.9.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.
@protected NSArray* _protocolClasses;
Availability: MacOS-X 10.9.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.
@protected NSURLRequestCachePolicy _requestCachePolicy;
Availability: MacOS-X 10.9.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.
- Declared in:
- Foundation/NSURLSession.h
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
Availability: MacOS-X 10.11.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSCopying
Availability: MacOS-X 10.9.0
Description forthcoming.
Instance Variables
Method summary
- (void)
cancel;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (int64_t)
countOfBytesExpectedToReceive;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (int64_t)
countOfBytesExpectedToSend;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (int64_t)
countOfBytesReceived;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (int64_t)
countOfBytesSent;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLRequest*)
currentRequest;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSError*)
error;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLRequest*)
originalRequest;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (float)
priority;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLResponse*)
response;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
resume;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSession*)
session;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setPriority: (float)priority;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setResponse: (
NSURLResponse*)response;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
setTaskDescription: (
NSString*)taskDescription;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
suspend;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSString*)
taskDescription;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSUInteger)
taskIdentifier;
Availability: MacOS-X 10.9.0
Description forthcoming.
Instance Variables for NSURLSessionTask Class
@protected int64_t _countOfBytesExpectedToReceive;
Availability: MacOS-X 10.9.0
number of byte bytes we expect to receive, usually
derived from the Content-Length header of an HTTP
response.
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.
@protected int64_t _countOfBytesExpectedToSend;
Availability: MacOS-X 10.9.0
number of body bytes we expect to send, derived from
the Content-Length of the HTTP request
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.
@protected int64_t _countOfBytesReceived;
Availability: MacOS-X 10.9.0
number of body bytes already received
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.
@protected int64_t _countOfBytesSent;
Availability: MacOS-X 10.9.0
number of body bytes already sent
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.
@protected NSURLRequest* _currentRequest;
Availability: MacOS-X 10.9.0
The request this task is currently handling. This may
differ from originalRequest due to http server
redirection
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.
@protected void(^ _dataCompletionHandler;
Availability: MacOS-X 10.9.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.
@protected void(^ _downloadCompletionHandler;
Availability: MacOS-X 10.9.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.
@protected NSError* _error;
Availability: MacOS-X 10.9.0
The error, if any, delivered via
-URLSession:task:didCompleteWithError:
This is
nil
until an error has occured.
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.
@protected GSURLSessionTaskBody* _knownBody;
Availability: MacOS-X 10.9.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.
@protected NSURLRequest* _originalRequest;
Availability: MacOS-X 10.9.0
The request this task was created to handle.
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.
@protected NSURLResponse* _response;
Availability: MacOS-X 10.9.0
The response to the current request, which may be
nil
if no response has been received
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.
@protected NSURLSessionTaskState _state;
Availability: MacOS-X 10.9.0
The current state of the task within the session.
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.
@protected NSUInteger _suspendCount;
Availability: MacOS-X 10.9.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.
@protected NSString* _taskDescription;
Availability: MacOS-X 10.9.0
a description of the current task for diagnostic purposes
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.
@protected NSUInteger _taskIdentifier;
Availability: MacOS-X 10.9.0
An identifier for this task, assigned by and unique to
the owning session
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.
@protected void* _workQueue;
Availability: MacOS-X 10.9.0
The dispatch queue used to handle this
request/response. This is actualy a
libdispatch queue of type dispatch_queue_t, but
on all known implementations this is a pointer, so void*
is the correct size.
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.
- Declared in:
- Foundation/NSURLSession.h
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
Availability: MacOS-X 10.9.0
Description forthcoming.
Method summary
- (
NSURLSessionDataTask*)
dataTaskWithRequest: (
NSURLRequest*)request
completionHandler: (void(^)(NSData*data,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionDataTask*)
dataTaskWithURL: (
NSURL*)url
completionHandler: (void(^)(NSData*data,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionDownloadTask*)
downloadTaskWithRequest: (
NSURLRequest*)request
completionHandler: (void(^)(NSURL*location,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionDownloadTask*)
downloadTaskWithResumeData: (
NSData*)resumeData
completionHandler: (void(^)(NSURL*location,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionDownloadTask*)
downloadTaskWithURL: (
NSURL*)url
completionHandler: (void(^)(NSURL*location,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionUploadTask*)
uploadTaskWithRequest: (
NSURLRequest*)request
fromData: (
NSData*)bodyData
completionHandler: (void(^)(NSData*data,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (
NSURLSessionUploadTask*)
uploadTaskWithRequest: (
NSURLRequest*)request
fromFile: (
NSURL*)fileURL
completionHandler: (void(^)(NSData*data,NSURLResponse*response,NSError*error))completionHandler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSURLSessionTaskDelegate
Availability: MacOS-X 10.9.0
Description forthcoming.
Method summary
- (void)
URLSession: (
NSURLSession*)session
dataTask: (
NSURLSessionDataTask*)dataTask
didReceiveResponse: (
NSURLResponse*)response
completionHandler: (void(^)(NSURLSessionResponseDisposition disposition))completionHandler;
Availability: MacOS-X 10.9.0
Informs the delegate of a response. This
message is sent when all the response
headers have arrived, before the body of the
response arrives.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSObject
Availability: MacOS-X 10.9.0
Description forthcoming.
Method summary
- (void)
URLSession: (
NSURLSession*)session
didBecomeInvalidWithError: (
NSError*)error;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
URLSession: (
NSURLSession*)session
didReceiveChallenge: (
NSURLAuthenticationChallenge*)challenge
completionHandler: (void(^)(NSURLSessionAuthChallengeDisposition disposition,NSURLCredential*credential))handler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSURLSessionTaskDelegate
Availability: MacOS-X 10.9.0
Description forthcoming.
Method summary
- (void)
URLSession: (
NSURLSession*)session
downloadTask: (
NSURLSessionDownloadTask*)downloadTask
didResumeAtOffset: (int64_t)fileOffset
expectedTotalBytes: (int64_t)expectedTotalBytes;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
URLSession: (
NSURLSession*)session
downloadTask: (
NSURLSessionDownloadTask*)downloadTask
didWriteData: (int64_t)bytesWritten
totalBytesWritten: (int64_t)totalBytesWritten
totalBytesExpectedToWrite: (int64_t)totalBytesExpectedToWrite;
Availability: MacOS-X 10.9.0
Description forthcoming.
- Declared in:
- Foundation/NSURLSession.h
- Conforms to:
- NSURLSessionDelegate
Availability: MacOS-X 10.9.0
Description forthcoming.
Method summary
- (void)
URLSession: (
NSURLSession*)session
task: (
NSURLSessionTask*)task
didReceiveChallenge: (
NSURLAuthenticationChallenge*)challenge
completionHandler: (void(^)(NSURLSessionAuthChallengeDisposition disposition,NSURLCredential*credential))handler;
Availability: MacOS-X 10.9.0
Description forthcoming.
- (void)
URLSession: (
NSURLSession*)session
task: (
NSURLSessionTask*)task
didSendBodyData: (int64_t)bytesSent
totalBytesSent: (int64_t)totalBytesSent
totalBytesExpectedToSend: (int64_t)totalBytesExpectedToSend;
Availability: MacOS-X 10.9.0
Description forthcoming.
Up