28 #ifndef HTTP_PARSER_REQUEST_HPP
29 #define HTTP_PARSER_REQUEST_HPP
31 #include <websocketpp/common/memory.hpp>
32 #include <websocketpp/http/parser.hpp>
51 typedef lib::shared_ptr<type> ptr;
54 : m_buf(lib::make_shared<std::string>())
80 size_t consume(
const char *buf,
size_t len);
108 void process(std::string::iterator begin, std::string::iterator end);
110 lib::shared_ptr<std::string> m_buf;
111 std::string m_method;
120 #include <websocketpp/http/impl/request.hpp>
122 #endif // HTTP_PARSER_REQUEST_HPP
void set_uri(const std::string &uri)
Set the HTTP uri. Must be a valid HTTP uri.
const std::string & get_method() const
Return the request method.
std::string raw()
Returns the full raw request.
bool parse_complete(std::istream &s)
DEPRECATED parse a complete header ( MUST be in the istream)
const std::string & get_uri() const
Return the requested URI.
Namespace for the WebSocket++ project.
void set_method(const std::string &method)
Set the HTTP method. Must be a valid HTTP token.
Stores, parses, and manipulates HTTP requests.
size_t consume(const char *buf, size_t len)
Process bytes in the input buffer.
bool ready() const
Returns whether or not the request is ready for reading.