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

Writer object that writes to an Apache Request stream. More...

#include "apache_writer.h"

Inheritance diagram for net_instaweb::ApacheWriter:

Public Member Functions

 ApacheWriter (request_rec *r)
 
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)
 
void set_squelch_output (bool x)
 
bool squelch_output () const
 

Detailed Description

Writer object that writes to an Apache Request stream.

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)
inline

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_squelch_output ( bool  x)
inline

When proxying content we deem to be unsafe (e.g. lacking a Content-Type header) we must squelch the output.

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

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


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