Page Speed Optimization Libraries
1.13.35.1
|
#include "apache_writer.h"
Public Member Functions | |
ApacheWriter (request_rec *r, ThreadSystem *thread_system) | |
virtual bool | Write (const StringPiece &str, MessageHandler *handler) |
virtual bool | Flush (MessageHandler *handler) |
void | OutputHeaders (ResponseHeaders *response_headers) |
void | set_content_length (int64 x) |
void | set_disable_downstream_header_filters (bool x) |
void | set_strip_cookies (bool x) |
Public Member Functions inherited from net_instaweb::Writer | |
virtual bool | Dump (Writer *writer, MessageHandler *message_handler) |
Writer object that writes to an Apache Request stream. Should only be used from a single apache request thread, not from a rewrite thread or anything else.
void net_instaweb::ApacheWriter::OutputHeaders | ( | ResponseHeaders * | response_headers | ) |
Copies the contents of the specified response_headers to the Apache headers_out structure. This must be done before any bytes are flushed.
Note: if strip_cokies is set, the cookies will be stripped here.
If set_content_length was previously called, this will set a content length to avoid chunked encoding, otherwise it will clear any content-length specified in the response headers.
|
inline |
Disables mod_expires and mod_headers to allow the headers to be under control of mod_pagespeed. Default is false.
|
inline |
Removes 'Set-Cookie' and 'Set-Cookie2' from the response headers once they are complete. Default is false.