|
Objectively
Object oriented framework for C.
|
#include <URLSession.h>
A management context for loading resources via URLs.
Definition at line 59 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 [0] |
| The interface type. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface [0] |
| The interface type. | |
| URLSessionConfiguration* URLSession::configuration |
The session configuration.
Definition at line 81 of file URLSession.h.
|
protected |
The interface type.
Definition at line 70 of file URLSession.h.
| Object URLSession::object |
The superclass.
Definition at line 64 of file URLSession.h.
| Class * _URLSession | ( | void | ) |
The URLSession archetype.
Definition at line 496 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 if this URLSession is invalidated. Definition at line 85 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 if this URLSession is invalidated. Definition at line 129 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 if this URLSession is invalidated. Definition at line 145 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 if this URLSession is invalidated. Definition at line 154 of file URLSession.c.
| URLSession * init | ( | URLSession * | self | ) |
Initializes this URLSession with a default configuration.
| self | The URLSession. |
NULL on error. Definition at line 169 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 368 of file URLSession.c.
| void invalidateAndCancel | ( | URLSession * | self | ) |
Invalidates this URLSession and cancels all pending tasks.
| self | The URLSession. |
URLSessionTask::execute is running on other threads are interrupted too. After this call, the task factories return NULL. This method returns without waiting for the cancelled tasks. Deallocating the URLSession invalidates it, then waits for its Thread, which finishes once every task has completed or been cancelled. Definition at line 390 of file URLSession.c.
| URLSession * sharedInstance | ( | void | ) |
| Array * tasks | ( | const URLSession * | self | ) |
| self | The URLSession. |
Definition at line 438 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 if this URLSession is invalidated. Definition at line 453 of file URLSession.c.