19 #ifndef NET_INSTAWEB_HTTP_PUBLIC_HTTP_RESPONSE_PARSER_H_
20 #define NET_INSTAWEB_HTTP_PUBLIC_HTTP_RESPONSE_PARSER_H_
29 namespace net_instaweb {
32 class ResponseHeaders;
41 : reading_headers_(
true),
43 response_headers_(response_headers),
46 parser_(response_headers) {
54 bool Parse(FILE* stream);
60 bool ok()
const {
return ok_; }
61 bool headers_complete()
const {
return parser_.headers_complete(); }
64 bool reading_headers_;
bool ParseChunk(const StringPiece &data)
bool ParseFile(FileSystem::InputFile *file)
Parse complete HTTP response from a file.
Definition: http_response_parser.h:37
Interface for writing bytes to an output stream.
Definition: writer.h:29
Definition: message_handler.h:39