Skip to content
SiteEmail

cohtml::IAsyncResourceRequest

Encapsulates a resource request.

#include <ResourceHandler.h>

Name
structFallbackURLsData
Name
enum classResourceType { Font, Other}
Name
IAsyncResourceRequest()
virtual~IAsyncResourceRequest()
virtual unsignedGetId() 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 unsignedGetHeadersCount() 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 unsignedGetBodySize() const =0
Get the length of the request body.
virtual ResourceTypeGetResourceType() const =0
Get the type of resource that was requested.
virtual FallbackURLsDataGetFallbackURLs() const =0
EnumeratorValueDescription
Font
Other
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