28 #ifndef HTTP_PARSER_REQUEST_HPP
29 #define HTTP_PARSER_REQUEST_HPP
33 #include <websocketpp/common/memory.hpp>
34 #include <websocketpp/http/parser.hpp>
36 namespace websocketpp {
50 class request :
public parser {
53 typedef lib::shared_ptr<type> ptr;
56 : m_buf(lib::make_shared<std::string>())
79 size_t consume(
char const * buf, size_t len);
87 std::string raw()
const;
90 std::string raw_head()
const;
93 void set_method(std::string
const & method);
96 std::string
const & get_method()
const {
101 void set_uri(std::string
const & uri);
104 std::string
const & get_uri()
const {
110 void process(std::string::iterator begin, std::string::iterator end);
112 lib::shared_ptr<std::string> m_buf;
113 std::string m_method;
122 #include <websocketpp/http/impl/request.hpp>