|
CeresEngine 0.2.0
A game development framework
|
Creates a new URLProtocol instance.
More...
#include <CeresEngine/Foundation/IO/URLSession.hpp>
Public Member Functions | |
| URLRequest | prepareRequest (URLRequest &&request) override |
| If the request is supported by the protocol, this method is called to perform and transformation that the protocol may be require on the user request object. | |
| StringView | getName () const noexcept final |
| Returns a string that identifies the protocol by a name. | |
| URLProtocol (URLSession &session) noexcept | |
Creates a new URLProtocol instance. | |
Public Member Functions inherited from CeresEngine::URLProtocol | |
| URLProtocol (URLSession &session) noexcept | |
Creates a new URLProtocol instance. | |
| virtual | ~URLProtocol () noexcept=default |
Destroys the URLProtocol instance. | |
| virtual bool | isRequestSupported (const URLRequest &request)=0 |
Checks if the given request is supported by the protocol. | |
| virtual Async< URLResponse > | execute (Task &connection)=0 |
| Executes a request. | |
Additional Inherited Members | |
Protected Attributes inherited from CeresEngine::URLProtocol | |
| URLSession & | mSession |
| The session that owns this protocol instance. | |
Creates a new URLProtocol instance.
|
inlinefinalvirtualnoexcept |
Returns a string that identifies the protocol by a name.
Implements CeresEngine::URLProtocol.
|
inlineoverridevirtual |
If the request is supported by the protocol, this method is called to perform and transformation that the protocol may be require on the user request object.
All transformations will be performed on a copy of the request object and will be passed to execute().
| request | The request to be transformed. |
request. Reimplemented from CeresEngine::URLProtocol.
|
inlineexplicitnoexcept |
Creates a new URLProtocol instance.