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.
27 lines
475 B
C++
27 lines
475 B
C++
#ifndef WEBCC_HTTP_REQUEST_PARSER_H_
|
|
#define WEBCC_HTTP_REQUEST_PARSER_H_
|
|
|
|
#include <string>
|
|
|
|
#include "webcc/http_parser.h"
|
|
|
|
namespace webcc {
|
|
|
|
class HttpRequest;
|
|
|
|
class HttpRequestParser : public HttpParser {
|
|
public:
|
|
explicit HttpRequestParser(HttpRequest* request);
|
|
|
|
~HttpRequestParser() override = default;
|
|
|
|
private:
|
|
bool ParseStartLine(const std::string& line) override;
|
|
|
|
HttpRequest* request_;
|
|
};
|
|
|
|
} // namespace webcc
|
|
|
|
#endif // WEBCC_HTTP_REQUEST_PARSER_H_
|