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