35typedef struct URLSessionTaskInterface URLSessionTaskInterface;
160struct URLSessionTaskInterface {
165 ObjectInterface objectInterface;
static void teardown(void)
Called atexit to teardown Objectively.
static void setup(void)
Called when initializing Object to setup Objectively.
Object is the root Class of The Objectively Class hierarchy.
static void cancel(Operation *self)
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
static void resume(URLSessionTask *self)
static void execute(URLSessionTask *self)
static void suspend(URLSessionTask *self)
void(* URLSessionTaskProgress)(URLSessionTask *task)
A function pointer for URLSessionTask progress.
URLSessionTaskState
The various states a URLSessionTask may be in.
@ URLSESSIONTASK_RESUMING
@ URLSESSIONTASK_CANCELED
@ URLSESSIONTASK_SUSPENDING
@ URLSESSIONTASK_SUSPENDED
@ URLSESSIONTASK_COMPLETED
@ URLSESSIONTASK_CANCELING
void(* URLSessionTaskCompletion)(URLSessionTask *task, _Bool success)
A function pointer for URLSessionTask completion.
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
A protocol-agnostic abstraction for requesting resources via URLs.
A protocol-agnostic abstraction for URLSessionTask responses.
A management context for loading resources via URLs.
URL session tasks are handles to pending URL operations.
struct URLResponse * response
The response.
ident requestHeaders
HTTP headers, in libcurl list structure.
ident handle
The backing libcurl handle.
URLSessionTaskProgress progress
The progress function.
size_t bytesExpectedToSend
The count of bytes this task expects to send.
Object object
The superclass.
char * error
The error buffer.
Class * _URLSessionTask(void)
The URLSessionTask archetype.
struct URLRequest * request
The request.
size_t bytesReceived
The count of bytes received.
struct URLSession * session
The session.
URLSessionTaskInterface * interface
The interface.
URLSessionTaskState state
The state.
URLSessionTaskCompletion completion
The completion function.
size_t bytesSent
The count of bytes sent.
size_t bytesExpectedToReceive
The count of bytes this task expects to receive.