|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLSessionTask.h>
URL session tasks are handles to pending URL operations.
Definition at line 68 of file URLSessionTask.h.
Properties | |
| size_t | bytesExpectedToReceive |
| The count of bytes this task expects to receive. More... | |
| size_t | bytesExpectedToSend |
| The count of bytes this task expects to send. More... | |
| size_t | bytesReceived |
| The count of bytes received. More... | |
| size_t | bytesSent |
| The count of bytes sent. More... | |
| URLSessionTaskCompletion | completion |
| The completion function. More... | |
| ident | data |
| User data. More... | |
| char * | error |
| The error buffer. More... | |
| Object | object |
| The superclass. More... | |
| URLSessionTaskProgress | progress |
| The progress function. More... | |
| struct URLRequest * | request |
| The request. More... | |
| struct URLResponse * | response |
| The response. More... | |
| struct URLSession * | session |
| The session. More... | |
| URLSessionTaskState | state |
| The state. More... | |
| ident | handle |
| The backing libcurl handle. More... | |
| ident | requestHeaders |
| HTTP headers, in libcurl list structure. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _URLSessionTask (void) |
| The URLSessionTask archetype. More... | |
| void | cancel (URLSessionTask *) |
| Cancels this task. More... | |
| void | execute (URLSessionTask *) |
| Executes this task synchronously, on the calling thread. More... | |
| URLSessionTask * | initWithRequestInSession (URLSessionTask *, struct URLRequest *, struct URLSession *, URLSessionTaskCompletion) |
| Initializes this task with the given URLRequest. More... | |
| void | resume (URLSessionTask *) |
| Starts or resumes this task. More... | |
| void | setup (URLSessionTask *) |
| Sets up this task. More... | |
| void | suspend (URLSessionTask *) |
| Suspends this task. More... | |
| void | teardown (URLSessionTask *) |
| Tears down this task. More... | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. More... | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. More... | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. More... | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. More... | |
| _Bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. More... | |
| _Bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. More... | |
Protected Attributes | |
| URLSessionTaskInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| size_t URLSessionTask::bytesExpectedToReceive |
The count of bytes this task expects to receive.
Definition at line 99 of file URLSessionTask.h.
| size_t URLSessionTask::bytesExpectedToSend |
The count of bytes this task expects to send.
Definition at line 104 of file URLSessionTask.h.
| size_t URLSessionTask::bytesReceived |
The count of bytes received.
Definition at line 109 of file URLSessionTask.h.
| size_t URLSessionTask::bytesSent |
The count of bytes sent.
Definition at line 114 of file URLSessionTask.h.
| URLSessionTaskCompletion URLSessionTask::completion |
The completion function.
Definition at line 119 of file URLSessionTask.h.
| ident URLSessionTask::data | ( | void | ) |
User data.
Definition at line 124 of file URLSessionTask.h.
| char* URLSessionTask::error |
The error buffer.
Definition at line 129 of file URLSessionTask.h.
| ident URLSessionTask::handle |
The backing libcurl handle.
Definition at line 88 of file URLSessionTask.h.
|
protected |
The interface.
Definition at line 79 of file URLSessionTask.h.
| Object URLSessionTask::object |
The superclass.
Definition at line 73 of file URLSessionTask.h.
| URLSessionTaskProgress URLSessionTask::progress |
The progress function.
Definition at line 134 of file URLSessionTask.h.
| struct URLRequest* URLSessionTask::request |
The request.
Definition at line 139 of file URLSessionTask.h.
| ident URLSessionTask::requestHeaders |
HTTP headers, in libcurl list structure.
Definition at line 93 of file URLSessionTask.h.
| struct URLResponse* URLSessionTask::response |
The response.
Definition at line 144 of file URLSessionTask.h.
| struct URLSession* URLSessionTask::session |
The session.
Definition at line 149 of file URLSessionTask.h.
| URLSessionTaskState URLSessionTask::state |
The state.
Definition at line 154 of file URLSessionTask.h.
| Class * _URLSessionTask | ( | void | ) |
The URLSessionTask archetype.
Definition at line 324 of file URLSessionTask.c.
| void cancel | ( | URLSessionTask * | self | ) |
Cancels this task.
| self | The URLSessionTask. |
Definition at line 70 of file URLSessionTask.c.
| void execute | ( | URLSessionTask * | self | ) |
Executes this task synchronously, on the calling thread.
| self | The URLSessionTask. |
Definition at line 88 of file URLSessionTask.c.
| URLSessionTask * initWithRequestInSession | ( | URLSessionTask * | self, |
| struct URLRequest * | request, | ||
| struct URLSession * | session, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Initializes this task with the given URLRequest.
| self | The URLSessionTask. |
| request | The request. |
| session | The session. |
| completion | The completion handler. |
NULL on error. Definition at line 105 of file URLSessionTask.c.
| void resume | ( | URLSessionTask * | self | ) |
Starts or resumes this task.
| self | The URLSessionTask. |
Definition at line 134 of file URLSessionTask.c.
| void setup | ( | URLSessionTask * | self | ) |
Sets up this task.
| self | The URLSessionTask. |
Definition at line 75 of file URLSessionDataTask.c.
| void suspend | ( | URLSessionTask * | self | ) |
Suspends this task.
| self | The URLSessionTask. |
Definition at line 272 of file URLSessionTask.c.
| void teardown | ( | URLSessionTask * | self | ) |
Tears down this task.
| self | The URLSessionTask. |
Definition at line 288 of file URLSessionTask.c.