...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
An HTTP/1 parser for producing a request message.
Defined in header <boost/beast/http/parser.hpp>
template< class Body, class Allocator = std::allocator<char>> using request_parser = parser< true, Body, Allocator >;
Name |
Description |
---|---|
true if this parser parses requests, false for responses. |
|
The type of message returned by the parser. |
Name |
Description |
---|---|
Set the limit on the payload body. |
|
Returns true if the last value for Transfer-Encoding is "chunked". |
|
Returns the optional value of Content-Length if known. |
|
Returns the remaining content length if known. |
|
Returns true if the eager parse option is set. Set the eager parse option. |
|
Returns the parsed message. |
|
Returns true if the parser has received at least one byte of input. |
|
Set a limit on the total size of the header. |
|
Returns true if the message is complete. |
|
Returns true if a the parser has produced the full header. |
|
Returns true if the message has keep-alive connection semantics. |
|
Returns true if the message semantics require an end of file. |
|
Set a callback to be invoked on chunk body data. |
|
Set a callback to be invoked on each chunk header. |
|
Assignment (disallowed) |
|
Constructor (disallowed) Constructor. Construct a parser from another parser, changing the Body type. |
|
Write a buffer sequence to the parser. |
|
Inform the parser that the end of stream was reached. |
|
Returns ownership of the parsed message. |
|
Returns true if the skip parse option is set. Set the skip parse option. |
|
Returns true if the message is an upgrade message. |
|
Destructor. |
This class uses the basic HTTP/1 wire format parser to convert a series of
octets into a http::message
using the http::basic_fields
container to represent
the fields.
Type |
Description |
---|---|
|
Indicates whether a request or response will be parsed. |
|
The type used to represent the body. This must meet the requirements of Body. |
|
The type of allocator used with the |
A new instance of the parser is required for each message.
Convenience header <boost/beast/http.hpp>