Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::UI::URLRequestBase Class Referenceabstract

represents a single URL request (read-only) Allows monitoring of URL requests More...

#include <Coherent/UI/URLRequestBase.h>

+ Inheritance diagram for Coherent::UI::URLRequestBase:

Public Member Functions

virtual const wchar_t * GetURL () const =0
 Get the URL of the request. More...
 
virtual const char * GetMethod () const =0
 Get the method of the request. More...
 
virtual const wchar_t * GetReferrer () const =0
 Get the referrer of the request. More...
 
virtual const char * GetExtraHeader (const char *field) const =0
 Get extra header value. More...
 
virtual int GetExtraHeaderIndex (const char *field) const =0
 Get extra header value. More...
 
virtual bool HasExtraHeader (const char *field) const =0
 Checks if a header with the specified key is present in the headers collection. More...
 
virtual const HTTPHeaderGetExtraHeaders () const =0
 Get extra headers. More...
 
virtual unsigned int GetExtraHeadersCount () const =0
 Get extra headers count. More...
 

Detailed Description

represents a single URL request (read-only) Allows monitoring of URL requests

Member Function Documentation

virtual const char* Coherent::UI::URLRequestBase::GetExtraHeader ( const char *  field) const
pure virtual

Get extra header value.

Parameters
fieldfield of the header
Returns
the value of the header or nullptr if there is such header in the request
virtual int Coherent::UI::URLRequestBase::GetExtraHeaderIndex ( const char *  field) const
pure virtual

Get extra header value.

Parameters
fieldfield of the header
Returns
the index of the header with the specified key in the headers collection, or a negative number if no such key exists
virtual const HTTPHeader* Coherent::UI::URLRequestBase::GetExtraHeaders ( ) const
pure virtual

Get extra headers.

Returns
pointer to the first header of the request
virtual unsigned int Coherent::UI::URLRequestBase::GetExtraHeadersCount ( ) const
pure virtual

Get extra headers count.

Returns
the number of extra headers in the request
virtual const char* Coherent::UI::URLRequestBase::GetMethod ( ) const
pure virtual

Get the method of the request.

Returns
the method as a string
virtual const wchar_t* Coherent::UI::URLRequestBase::GetReferrer ( ) const
pure virtual

Get the referrer of the request.

Returns
the referrer of the request
virtual const wchar_t* Coherent::UI::URLRequestBase::GetURL ( ) const
pure virtual

Get the URL of the request.

Returns
the URL of the request
virtual bool Coherent::UI::URLRequestBase::HasExtraHeader ( const char *  field) const
pure virtual

Checks if a header with the specified key is present in the headers collection.

Parameters
fieldfield of the header
Returns
true if a header with the specified key is present, false otherwise