|
CeresEngine 0.2.0
A game development framework
|
The URLResponse object for FileURLProtocol.
More...
#include <CeresEngine/Foundation/IO/URLSession.File.hpp>
Public Member Functions | |
| Response (const URLRequest &request, const FilePath &path) | |
Creates a new Response object. | |
| URLInputStream | openInputStream () override |
| URLOutputStream | openOutputStream () override |
| URLDataStream | openDataStream () override |
Public Member Functions inherited from CeresEngine::IURLResponse | |
| IURLResponse (URLRequest request) | |
Creates a new URLResponse from a request. | |
| virtual | ~IURLResponse () noexcept=default |
Destroys the URLResponse. | |
| JSON | asJSON () |
| Opens the stream and reads it as a JSON file. | |
Public Attributes | |
| const FilePath | path |
Public Attributes inherited from CeresEngine::IURLResponse | |
| const URLRequest | request |
| The request that triggered the response. | |
| UInt64 | expectedContentLength = ~0ul |
| The expected length of the response's content. | |
| String | suggestedFileName = "" |
| A suggested filename for the response data. | |
| String | mimeType = "" |
| The MIME type of the response. | |
| String | textEncodingName = "" |
| The name of the text encoding provided by the response's originating source. | |
| UUID | contentID |
| A ID that uniquely represents a content. | |
The URLResponse object for FileURLProtocol.
|
explicit |
Creates a new Response object.
|
overridevirtual |
Reimplemented from CeresEngine::IURLResponse.
|
overridevirtual |
Implements CeresEngine::IURLResponse.
|
overridevirtual |
Reimplemented from CeresEngine::IURLResponse.