CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::FileURLProtocol::Response Class Reference

The URLResponse object for FileURLProtocol. More...

#include <CeresEngine/Foundation/IO/URLSession.File.hpp>

Inheritance diagram for CeresEngine::FileURLProtocol::Response:
CeresEngine::IURLResponse

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.
 

Detailed Description

The URLResponse object for FileURLProtocol.

Constructor & Destructor Documentation

◆ Response()

CeresEngine::FileURLProtocol::Response::Response ( const URLRequest request,
const FilePath path 
)
explicit

Creates a new Response object.

Member Function Documentation

◆ openDataStream()

URLDataStream CeresEngine::FileURLProtocol::Response::openDataStream ( )
overridevirtual

Reimplemented from CeresEngine::IURLResponse.

◆ openInputStream()

URLInputStream CeresEngine::FileURLProtocol::Response::openInputStream ( )
overridevirtual

◆ openOutputStream()

URLOutputStream CeresEngine::FileURLProtocol::Response::openOutputStream ( )
overridevirtual

Reimplemented from CeresEngine::IURLResponse.

Member Data Documentation

◆ path

const FilePath CeresEngine::FileURLProtocol::Response::path

The documentation for this class was generated from the following file: