Remove http prefix

This commit is contained in:
Chunting Gu
2019-04-18 13:40:36 +08:00
parent 2ea04b9705
commit e621025cc3
66 changed files with 997 additions and 1047 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef WEBCC_RESPONSE_PARSER_H_
#define WEBCC_RESPONSE_PARSER_H_
#include <string>
#include "webcc/parser.h"
namespace webcc {
class Response;
class ResponseParser : public Parser {
public:
explicit ResponseParser(Response* response = nullptr);
~ResponseParser() override = default;
void Init(Response* response);
private:
// Parse HTTP start line; E.g., "HTTP/1.1 200 OK".
bool ParseStartLine(const std::string& line) final;
// The result response message.
Response* response_;
};
} // namespace webcc
#endif // WEBCC_RESPONSE_PARSER_H_