net_instaweb::HTTPValueWriter Class Reference

#include "http_value_writer.h"

List of all members.

Public Member Functions

 HTTPValueWriter (HTTPValue *value, HTTPCache *cache)
void SetHeaders (ResponseHeaders *headers)
bool Write (const StringPiece &str, MessageHandler *handler)
bool has_buffered () const
bool CheckCanCacheElseClear (ResponseHeaders *headers)

Detailed Description

Wrappper for buffering an HTTPValue. HTTPValueWriter ensures that an HTTPValue which cannot be eventually cached is not buffered.


Member Function Documentation

bool net_instaweb::HTTPValueWriter::CheckCanCacheElseClear ( ResponseHeaders headers  ) 

Checks if the http_value should be buffered or not depending on whether we can eventually cache it. It also clears the http_value if it can not be buffered.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:54 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3