Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::ApacheWriter Class Reference

#include "apache_writer.h"

Inheritance diagram for net_instaweb::ApacheWriter:

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)

Detailed Description

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.

Member Function Documentation

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.

void net_instaweb::ApacheWriter::set_disable_downstream_header_filters ( bool  x)

Disables mod_expires and mod_headers to allow the headers to be under control of mod_pagespeed. Default is false.

void net_instaweb::ApacheWriter::set_strip_cookies ( bool  x)

Removes 'Set-Cookie' and 'Set-Cookie2' from the response headers once they are complete. Default is false.

TODO(jefftk): Doesn't actually do anything, because of an old bug.

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