|
Objectively 1.0.0
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. More... | |
| Object | object |
| The superclass. More... | |
| Condition * | condition |
| The condition. More... | |
| ident | handle |
| The libcurl handle. More... | |
| Lock * | lock |
The Lock guarding access to tasks. More... | |
| MutableArray * | tasks |
| The URLSessionTasks. More... | |
| Thread * | thread |
| The backing Thread. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Protected Attributes | |
| URLSessionInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| Condition* URLSession::condition |
The condition.
Definition at line 77 of file URLSession.h.
| URLSessionConfiguration* URLSession::configuration |
The session configuration.
Definition at line 103 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.
| Lock* URLSession::lock |
The Lock guarding access to tasks.
Definition at line 87 of file URLSession.h.
| Object URLSession::object |
The superclass.
Definition at line 62 of file URLSession.h.
| MutableArray* URLSession::tasks |
The URLSessionTasks.
Definition at line 92 of file URLSession.h.
| Thread* URLSession::thread |
The backing Thread.
Definition at line 97 of file URLSession.h.
| Class * _URLSession | ( | void | ) |
The URLSession archetype.
Definition at line 389 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 85 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 100 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 109 of file URLSession.c.
| URLSession * init | ( | URLSession * | self | ) |
Initializes this URLSession with a default configuration.
| self | The URLSession. |
NULL on error. Definition at line 124 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 267 of file URLSession.c.
| void invalidateAndCancel | ( | URLSession * | self | ) |
Invalidates this URLSession and cancels all pending tasks.
| self | The URLSession. |
Definition at line 290 of file URLSession.c.
| URLSession * sharedInstance | ( | void | ) |
| Array * tasks | ( | const URLSession * | self | ) |
| self | The URLSession. |
Definition at line 331 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 346 of file URLSession.c.