You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
519 B
C++
26 lines
519 B
C++
#ifndef WEBCC_HTTP_RESPONSE_PARSER_H_
|
|
#define WEBCC_HTTP_RESPONSE_PARSER_H_
|
|
|
|
#include "webcc/http_parser.h"
|
|
|
|
namespace webcc {
|
|
|
|
class HttpResponse;
|
|
|
|
class HttpResponseParser : public HttpParser {
|
|
public:
|
|
explicit HttpResponseParser(HttpResponse* response);
|
|
|
|
private:
|
|
// Parse HTTP start line; E.g., "HTTP/1.1 200 OK".
|
|
Error ParseStartLine(const std::string& line) override;
|
|
|
|
private:
|
|
// The result response message.
|
|
HttpResponse* response_;
|
|
};
|
|
|
|
} // namespace webcc
|
|
|
|
#endif // WEBCC_HTTP_RESPONSE_PARSER_H_
|