|
CeresEngine 0.2.0
A game development framework
|
A URLProtocol implementation that fetches resources from the local operating system file system.
More...
#include <CeresEngine/Foundation/IO/URLSession.File.hpp>
Classes | |
| class | Request |
The URLRequest object for FileURLProtocol. More... | |
| class | Response |
The URLResponse object for FileURLProtocol. More... | |
Public Member Functions | |
| bool | isRequestSupported (const URLRequest &request) final |
Checks if the given request is supported by the protocol. | |
| Async< URLResponse > | execute (Task &connection) final |
Public Member Functions inherited from CeresEngine::TURLProtocol< FileURLProtocol, "File"> | |
| 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. | |
Additional Inherited Members | |
Protected Attributes inherited from CeresEngine::URLProtocol | |
| URLSession & | mSession |
| The session that owns this protocol instance. | |
A URLProtocol implementation that fetches resources from the local operating system file system.
|
finalvirtual |
Implements CeresEngine::URLProtocol.
|
finalvirtual |
Checks if the given request is supported by the protocol.
This method will be called very often, so it must be efficiently implemented.
| request | The request to check for support. |
Implements CeresEngine::URLProtocol.