net_instaweb::RewriteQuery Class Reference

List of all members.

Public Types

enum  Status { kSuccess, kInvalid, kNoneFound }

Static Public Member Functions

static Status Scan (RewriteDriverFactory *factory, GoogleUrl *request_url, RequestHeaders *request_headers, scoped_ptr< RewriteOptions > *options, MessageHandler *handler)

Static Public Attributes

static const char kModPagespeed []
 The names of query-params.
static const char kModPagespeedDisableForBots []
static const char kModPagespeedFilters []

Member Function Documentation

static Status net_instaweb::RewriteQuery::Scan ( RewriteDriverFactory factory,
GoogleUrl request_url,
RequestHeaders request_headers,
scoped_ptr< RewriteOptions > *  options,
MessageHandler handler 
) [static]

Scans request_url's query parameters and request_headers for "ModPagespeed" flags, creating and populating *'options' if any were found they were all parsed successfully. If any were parsed unsuccessfully kInvalid is returned. If none found, kNoneFound is returned. It also removes the "ModPagespeed" flags from the query_params of the url and the request_headers.

Todo:
TODO(jmarantz): consider allowing an alternative prefix to "ModPagespeed" to accomodate other Page Speed Automatic applications that might want to brand differently.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:05 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3