Page Speed Optimization Libraries  1.7.30.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::ApacheWriter Class Reference

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

#include "apache_writer.h"

List of all members.

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)

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.

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines