Page Speed Optimization Libraries  1.9.32.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::SystemRequestContext Class Reference
Inheritance diagram for net_instaweb::SystemRequestContext:
net_instaweb::ApacheRequestContext

Public Member Functions

 SystemRequestContext (AbstractMutex *logging_mutex, Timer *timer, StringPiece hostname, int local_port, StringPiece local_ip)
 
void set_url (StringPiece url)
 
int local_port () const
 
const GoogleString & local_ip () const
 
StringPiece url () const
 

Static Public Member Functions

static SystemRequestContextDynamicCast (RequestContext *rc)
 

Constructor & Destructor Documentation

net_instaweb::SystemRequestContext::SystemRequestContext ( AbstractMutex *  logging_mutex,
Timer *  timer,
StringPiece  hostname,
int  local_port,
StringPiece  local_ip 
)

There are two ways a request may specify the hostname: with the Host header or on the initial request line. Callers need to check both places.

Member Function Documentation

static SystemRequestContext* net_instaweb::SystemRequestContext::DynamicCast ( RequestContext *  rc)
static

Returns rc as a SystemRequestContext* if it is one and CHECK fails if it is not. Returns NULL if rc is NULL.

void net_instaweb::SystemRequestContext::set_url ( StringPiece  url)
inline

Captures the original URL of the request, which is used to help authorize domains for fetches we do on behalf of that request.


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