|
| 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 |
|
| RequestContext (const HttpOptions &options, AbstractMutex *logging_mutex, Timer *timer) |
|
| RequestContext (AbstractMutex *logging_mutex, Timer *timer) |
| If you use this constructor, you MUST set_options() later.
|
|
virtual AbstractLogRecord * | NewSubordinateLogRecord (AbstractMutex *logging_mutex) |
|
RequestTrace * | root_trace_context () |
|
void | set_root_trace_context (RequestTrace *x) |
| Takes ownership of the given context.
|
|
virtual RequestTrace * | CreateDependentTraceContext (const StringPiece &label) |
|
virtual void | ReleaseDependentTraceContext (RequestTrace *t) |
|
virtual AbstractLogRecord * | log_record () |
| The log record for the this request, created when the request context is.
|
|
bool | using_spdy () const |
| Determines whether this request is using the SPDY protocol.
|
|
void | set_using_spdy (bool x) |
|
const GoogleString & | minimal_private_suffix () const |
|
void | set_minimal_private_suffix (StringPiece minimal_private_suffix) |
|
void | set_accepts_webp (bool x) |
|
bool | accepts_webp () const |
|
SplitRequestType | split_request_type () const |
| Indicates the type of split html request.
|
|
void | set_split_request_type (SplitRequestType type) |
|
int64 | request_id () const |
|
void | set_request_id (int64 x) |
|
const GoogleString & | sticky_query_parameters_token () const |
|
void | set_sticky_query_parameters_token (StringPiece x) |
|
void | AddSessionAuthorizedFetchOrigin (const GoogleString &origin) |
|
bool | IsSessionAuthorizedFetchOrigin (const GoogleString &origin) const |
|
void | PrepareLogRecordForOutput () |
|
void | WriteBackgroundRewriteLog () |
| Write the log for background rewriting into disk.
|
|
AbstractLogRecord * | GetBackgroundRewriteLog (ThreadSystem *thread_system, bool log_urls, bool log_url_indices, int max_rewrite_info_log_size) |
|
const TimingInfo & | timing_info () const |
|
TimingInfo * | mutable_timing_info () |
|
void | set_options (const HttpOptions &options) |
|
void | ResetOptions (const HttpOptions &options) |
|
const HttpOptions & | options () const |
|
static StringPiece net_instaweb::SystemRequestContext::MinimalPrivateSuffix |
( |
StringPiece |
hostname | ) |
|
|
static |
The public suffix of a hostname is the bit shared between multiple organizations. For example, anyone can register under ".com", ".co.uk", or ".appspot.com". The minimal private suffix goes one dotted section further, and is the name you would register when getting a domain: "google.com", "google.co.uk", "mysite.appspot.com". See system_request_context_test for more examples.