|
| InstawebContext (request_rec *request, RequestHeaders *request_headers, const ContentType &content_type, ApacheServerContext *server_context, const GoogleString &base_url, const RequestContextPtr &request_context, const QueryParams &pagespeed_query_params, const QueryParams &pagespeed_option_cookies, bool use_custom_options, const RewriteOptions &options) |
| Takes ownership of request_headers.
|
|
void | Rewrite (const char *input, int size) |
|
void | Flush () |
|
void | Finish () |
|
apr_bucket_brigade * | bucket_brigade () const |
|
ContentEncoding | content_encoding () const |
|
ApacheServerContext * | apache_server_context () |
|
const GoogleString & | output () |
|
bool | empty () const |
|
void | clear () |
|
ResponseHeaders * | response_headers () |
|
bool | sent_headers () |
|
void | set_sent_headers (bool sent) |
|
void | PopulateHeaders (request_rec *request) |
| Populated response_headers_ with the request's headers_out table.
|
|
Context for an HTML rewrite.
One is created for responses that appear to be HTML (although there is a basic sanity check that the first non-space char is '<').
The rewriter will put the rewritten content into the output string when flushed or finished. We call Flush when we see the FLUSH bucket, and call Finish when we see the EOS bucket.
- Todo:
- TODO(sligocki): Factor out similarities between this and ProxyFetch.