|
CeresEngine 0.2.0
A game development framework
|
An object that coordinates a group of related, network data transfer tasks. More...
#include <CeresEngine/Foundation/IO/URLSession.hpp>
Public Member Functions | |
| URLSession (ExecutionContext &executionContext) | |
Creates a new URLSession instance. | |
| ~URLSession () noexcept | |
Destroys an existing URLSession. | |
| Async< URLResponse > | execute (URLRequest request) |
| template<typename T , typename... Args> | |
| T & | registerProtocol (Args &&... args) |
| template<typename T > | |
| void | unregisterProtocol () |
| ExecutionContext & | getExecutionContext () |
| The execution context to which URL session callbacks will be called from. | |
Private Member Functions | |
| void | registerProtocol (URLProtocolPtr &&protocol) |
Private Attributes | |
| ExecutionContext & | mExecutionContext |
| The execution context to which URL session callbacks will be called from. | |
| LockedObject< Vector< URLProtocolPtr > > | mProtocols |
| A vector that contains all registered protocols. | |
| LockedObject< List< UPtr< URLProtocol::Task > > > | mConnections |
| A list that contains a reference to all active connections. | |
An object that coordinates a group of related, network data transfer tasks.
|
explicit |
Creates a new URLSession instance.
|
noexcept |
Destroys an existing URLSession.
| Async< URLResponse > CeresEngine::URLSession::execute | ( | URLRequest | request | ) |
|
inline |
The execution context to which URL session callbacks will be called from.
|
inline |
|
private |
|
private |
A list that contains a reference to all active connections.
|
private |
The execution context to which URL session callbacks will be called from.
|
private |
A vector that contains all registered protocols.