Coherent UI for Unity3D  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Coherent.UI.URLRequest Class Reference

represents a single URL request Allows monitoring and modifications of URL requests More...

+ Inheritance diagram for Coherent.UI.URLRequest:

Public Member Functions

void SetExtraHeaders (HTTPHeader[] headers)
 Set the extra headers. More...
 
virtual void SetURL (string url)
 Replace the URL of the request. More...
 
virtual void SetMethod (string method)
 Set the method of the request. More...
 
virtual void SetReferrer (string referrer)
 Set the referrer of the request. More...
 
virtual void SetExtraHeader (string field, string content)
 Set extra header for the request. If there is already a header with that field name its content will be replaced. More...
 
virtual void AppendExtraHeaderValue (string field, string content)
 Append extra header for the request. If there is already a header with that field name the content will be appended to the header current content with a comma as a separator between the values. If there is not such header it will be added. More...
 
virtual void RemoveExtraHeader (string field)
 Remove extra header from the request. More...
 
virtual void Deny ()
 Deny the request. More...
 
- Public Member Functions inherited from Coherent.UI.URLRequestBase
HTTPHeader[] GetExtraHeaders ()
 Get extra request headers More...
 
virtual string GetURL ()
 Get the URL of the request. More...
 
virtual string GetMethod ()
 Get the method of the request. More...
 
virtual string GetReferrer ()
 Get the referrer of the request. More...
 
virtual string GetExtraHeader (string field)
 Get extra header value. More...
 
virtual int GetExtraHeaderIndex (string field)
 Get extra header value. More...
 
virtual bool HasExtraHeader (string field)
 Checks if a header with the specified key is present in the headers collection. More...
 

Detailed Description

represents a single URL request Allows monitoring and modifications of URL requests

Member Function Documentation

virtual void Coherent.UI.URLRequest.AppendExtraHeaderValue ( string  field,
string  content 
)
inlinevirtual

Append extra header for the request. If there is already a header with that field name the content will be appended to the header current content with a comma as a separator between the values. If there is not such header it will be added.

Parameters
fieldname of the header
contentcontent of the header
virtual void Coherent.UI.URLRequest.Deny ( )
inlinevirtual

Deny the request.

virtual void Coherent.UI.URLRequest.RemoveExtraHeader ( string  field)
inlinevirtual

Remove extra header from the request.

Parameters
fieldfield of the header to be removed
virtual void Coherent.UI.URLRequest.SetExtraHeader ( string  field,
string  content 
)
inlinevirtual

Set extra header for the request. If there is already a header with that field name its content will be replaced.

Parameters
fieldname of the header
contentnew content of the header
void Coherent.UI.URLRequest.SetExtraHeaders ( HTTPHeader[]  headers)
inline

Set the extra headers.

Parameters
headersthe array of new headers
virtual void Coherent.UI.URLRequest.SetMethod ( string  method)
inlinevirtual

Set the method of the request.

Parameters
methodthe new method as string. method must be a valid HTTP method name
virtual void Coherent.UI.URLRequest.SetReferrer ( string  referrer)
inlinevirtual

Set the referrer of the request.

Parameters
referrerthe new referrer URL for the request
virtual void Coherent.UI.URLRequest.SetURL ( string  url)
inlinevirtual

Replace the URL of the request.