|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLSessionDataTask.h>
Use data tasks to send and receive Data in-memory.
Data tasks are well suited for web service invocations.
Definition at line 44 of file URLSessionDataTask.h.
Properties | |
| URLCachedResponse * | cachedResponse |
| A cached response, if this task was fulfilled from URLCache. | |
| void(* | cacheResponse )(URLSessionDataTask *self) |
| Stores this task's response in URLCache. | |
| Data * | data |
| The data received. | |
| URLSessionTask | urlSessionTask |
| The superclass. | |
Properties inherited from URLSessionTask | |
| size_t | bytesExpectedToReceive |
| The count of bytes this task expects to receive. | |
| size_t | bytesExpectedToSend |
| The count of bytes this task expects to send. | |
| size_t | bytesReceived |
| The count of bytes received. | |
| size_t | bytesSent |
| The count of bytes sent. | |
| URLSessionTaskCompletion | completion |
| The completion function. | |
| ident | data |
| User data. | |
| char * | error |
| The error buffer. | |
| Object | object |
| The superclass. | |
| URLSessionTaskProgress | progress |
| The progress function. | |
| struct URLRequest * | request |
| The request. | |
| struct URLResponse * | response |
| The response. | |
| struct URLSession * | session |
| The session. | |
| URLSessionTaskState | state |
| The state. | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. | |
| unsigned int | magic |
| A header to allow introspection of Object types. | |
Methods | |
| Class * | _URLSessionDataTask (void) |
| The URLSessionDataTask archetype. | |
| void | cacheResponse (URLSessionDataTask *self) |
Methods inherited from URLSessionTask | |
| Class * | _URLSessionTask (void) |
| The URLSessionTask archetype. | |
| void | cancel (URLSessionTask *) |
| Cancels this task. | |
| void | execute (URLSessionTask *) |
| Executes this task synchronously, on the calling thread. | |
| URLSessionTask * | initWithRequestInSession (URLSessionTask *, struct URLRequest *, struct URLSession *, URLSessionTaskCompletion) |
| Initializes this task with the given URLRequest. | |
| void | resume (URLSessionTask *) |
| Starts or resumes this task. | |
| void | setup (URLSessionTask *) |
| Sets up this task. | |
| void | suspend (URLSessionTask *) |
| Suspends this task. | |
| void | teardown (URLSessionTask *) |
| Tears down this task. | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. | |
| bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. | |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. | |
Protected Attributes | |
| URLSessionDataTaskInterface * | interface |
| The interface. | |
Protected Attributes inherited from URLSessionTask | |
| URLSessionTaskInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
| URLCachedResponse* URLSessionDataTask::cachedResponse |
A cached response, if this task was fulfilled from URLCache.
Definition at line 65 of file URLSessionDataTask.h.
| void(* cacheResponse) (URLSessionDataTask *self) |
Stores this task's response in URLCache.
Definition at line 82 of file URLSessionDataTask.h.
| Data* URLSessionDataTask::data |
The data received.
Definition at line 60 of file URLSessionDataTask.h.
|
protected |
The interface.
Definition at line 55 of file URLSessionDataTask.h.
| URLSessionTask URLSessionDataTask::urlSessionTask |
The superclass.
Definition at line 49 of file URLSessionDataTask.h.
| Class * _URLSessionDataTask | ( | void | ) |
The URLSessionDataTask archetype.
Definition at line 228 of file URLSessionDataTask.c.
| void cacheResponse | ( | URLSessionDataTask * | self | ) |
Definition at line 82 of file URLSessionDataTask.c.