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

#include "http_response_parser.h"

Public Member Functions

 HttpResponseParser (ResponseHeaders *response_headers, Writer *writer, MessageHandler *handler)
 
bool ParseFile (FileSystem::InputFile *file)
 Parse complete HTTP response from a file.
 
bool Parse (FILE *stream)
 
bool ParseChunk (const StringPiece &data)
 
bool ok () const
 
bool headers_complete () const
 

Detailed Description

Helper class to facilitate parsing a raw streaming HTTP response including headers and body.

Member Function Documentation

bool net_instaweb::HttpResponseParser::Parse ( FILE *  stream)

Parse complete HTTP response from a FILE stream.

Todo:
TODO(sligocki): We need a Readable abstraction (like Writer)
bool net_instaweb::HttpResponseParser::ParseChunk ( const StringPiece &  data)

Read a chunk of HTTP response, populating response_headers and call writer on output body, returning true if the status is ok.


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