|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <URLSession.h>
A management context for loading resources via URLs.
Definition at line 57 of file URLSession.h.
Properties | |
| URLSessionConfiguration * | configuration |
| The session configuration. | |
| Object | object |
| The superclass. | |
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. | |
Protected Attributes | |
| URLSessionInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
| Condition* URLSession::condition |
The condition, and the Lock guarding access to tasks.
Definition at line 77 of file URLSession.h.
| URLSessionConfiguration* URLSession::configuration |
The session configuration.
Definition at line 98 of file URLSession.h.
| ident URLSession::handle |
The libcurl handle.
Definition at line 82 of file URLSession.h.
|
protected |
The interface.
Definition at line 68 of file URLSession.h.
| Object URLSession::object |
The superclass.
Definition at line 62 of file URLSession.h.
| Array* URLSession::tasks |
The URLSessionTasks.
Definition at line 87 of file URLSession.h.
| Thread* URLSession::thread |
The backing Thread.
Definition at line 92 of file URLSession.h.
| Class * _URLSession | ( | void | ) |
The URLSession archetype.
Definition at line 414 of file URLSession.c.
| URLSessionDataTask * dataTaskWithRequest | ( | URLSession * | self, |
| URLRequest * | request, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Creates a URLSessionDataTask for the given URLRequest.
| self | The URLSession. |
| request | The URLRequest to perform. |
| completion | The completion handler. |
NULL on error. Definition at line 76 of file URLSession.c.
| URLSessionDataTask * dataTaskWithURL | ( | URLSession * | self, |
| URL * | url, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Creates a URLSessionDataTask for the given URL.
| self | The URLSession. |
| url | The URL to GET. |
| completion | The completion handler. |
NULL on error. Definition at line 103 of file URLSession.c.
| URLSessionDownloadTask * downloadTaskWithRequest | ( | URLSession * | self, |
| URLRequest * | request, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Creates a URLSessionDownloadTask for the given URLRequest.
| self | The URLSession. |
| request | The URLRequest to perform. |
| completion | The completion handler. |
NULL on error. Definition at line 119 of file URLSession.c.
| URLSessionDownloadTask * downloadTaskWithURL | ( | URLSession * | self, |
| URL * | url, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Creates a URLSessionDownloadTask for the given URL.
| self | The URLSession. |
| url | The URL to GET. |
| completion | The completion handler. |
NULL on error. Definition at line 128 of file URLSession.c.
| URLSession * init | ( | URLSession * | self | ) |
Initializes this URLSession with a default configuration.
| self | The URLSession. |
NULL on error. Definition at line 143 of file URLSession.c.
| URLSession * initWithConfiguration | ( | URLSession * | self, |
| URLSessionConfiguration * | configuration | ||
| ) |
Initializes this URLSession with the given configuration.
| self | The URLSession. |
| configuration | The URLSessionConfiguration. |
NULL on error. Definition at line 293 of file URLSession.c.
| void invalidateAndCancel | ( | URLSession * | self | ) |
Invalidates this URLSession and cancels all pending tasks.
| self | The URLSession. |
Definition at line 315 of file URLSession.c.
| URLSession * sharedInstance | ( | void | ) |
| Array * tasks | ( | const URLSession * | self | ) |
| self | The URLSession. |
Definition at line 356 of file URLSession.c.
| URLSessionUploadTask * uploadTaskWithRequest | ( | URLSession * | self, |
| URLRequest * | request, | ||
| URLSessionTaskCompletion | completion | ||
| ) |
Creates a URLSessionUploadTask for the given URLRequest.
| self | The URLSession. |
| request | The URLRequest to perform. |
| completion | The completion handler. |
NULL on error. Definition at line 371 of file URLSession.c.