cohtml::IAsyncResourceRequest
Encapsulates a resource request.
#include <ResourceHandler.h>
Public Classes
Section titled “Public Classes”| Name | |
|---|---|
| struct | FallbackURLsData |
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum class | ResourceType { Font, Other} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| IAsyncResourceRequest() | |
| virtual | ~IAsyncResourceRequest() |
| virtual unsigned | GetId() const =0 The ID of the request. |
| virtual const char * | GetURL() const =0 Absolute URL taking into account the current URL of the View. |
| virtual const char * | GetMethod() const =0 Get the request method. |
| virtual const char * | GetUsername() const =0 Get the username (optional) |
| virtual const char * | GetPassword() const =0 Get the password (optional) |
| virtual const char * | GetHeaderValue(const char * name) const =0 Returns the value of a particular header if exists. |
| virtual unsigned | GetHeadersCount() const =0 Returns the count of all headers in the request. |
| virtual const char * | GetHeaderName(unsigned id) const =0 Returns the name of the header at id. |
| virtual const char * | GetHeaderValue(unsigned id) const =0 Returns the value of the header at id. |
| virtual const char * | GetBody() const =0 Returns pointer to the request body. |
| virtual unsigned | GetBodySize() const =0 Get the length of the request body. |
| virtual ResourceType | GetResourceType() const =0 Get the type of resource that was requested. |
| virtual FallbackURLsData | GetFallbackURLs() const =0 |
Public Types Documentation
Section titled “Public Types Documentation”enum ResourceType
Section titled “enum ResourceType”| Enumerator | Value | Description |
|---|---|---|
| Font | ||
| Other |
Public Functions Documentation
Section titled “Public Functions Documentation”function IAsyncResourceRequest
Section titled “function IAsyncResourceRequest”IAsyncResourceRequest()function ~IAsyncResourceRequest
Section titled “function ~IAsyncResourceRequest”virtual ~IAsyncResourceRequest()function GetId
Section titled “function GetId”virtual unsigned GetId() const =0The ID of the request.
function GetURL
Section titled “function GetURL”virtual const char * GetURL() const =0Absolute URL taking into account the current URL of the View.
function GetMethod
Section titled “function GetMethod”virtual const char * GetMethod() const =0Get the request method.
function GetUsername
Section titled “function GetUsername”virtual const char * GetUsername() const =0Get the username (optional)
function GetPassword
Section titled “function GetPassword”virtual const char * GetPassword() const =0Get the password (optional)
function GetHeaderValue
Section titled “function GetHeaderValue”virtual const char * GetHeaderValue( const char * name) const =0Returns the value of a particular header if exists.
function GetHeadersCount
Section titled “function GetHeadersCount”virtual unsigned GetHeadersCount() const =0Returns the count of all headers in the request.
function GetHeaderName
Section titled “function GetHeaderName”virtual const char * GetHeaderName( unsigned id) const =0Returns the name of the header at id.
function GetHeaderValue
Section titled “function GetHeaderValue”virtual const char * GetHeaderValue( unsigned id) const =0Returns the value of the header at id.
function GetBody
Section titled “function GetBody”virtual const char * GetBody() const =0Returns pointer to the request body.
function GetBodySize
Section titled “function GetBodySize”virtual unsigned GetBodySize() const =0Get the length of the request body.
function GetResourceType
Section titled “function GetResourceType”virtual ResourceType GetResourceType() const =0Get the type of resource that was requested.
function GetFallbackURLs
Section titled “function GetFallbackURLs”virtual FallbackURLsData GetFallbackURLs() const =0© 2026 Coherent Labs. All rights reserved.