![]() |
NetFlex
0.0.0
C++11 HTTP Server Library.
|
#include <parser_iface.hpp>
Public Member Functions | |
parser_iface (http::request &request) | |
virtual | ~parser_iface (void)=default |
default dtor | |
virtual parser_iface & | operator<< (std::string &data)=0 |
virtual bool | is_done (void) const =0 |
Protected Attributes | |
http::request & | m_request |
parser interface that must be implemented by all parsers
|
explicit |
default ctor
request | request to be initialized |
|
pure virtual |
Implemented in netflex::parsing::header_fields_parser, netflex::parsing::header_field_parser, netflex::parsing::start_line_parser, netflex::parsing::message_body_parser, netflex::parsing::message_body_content_length_parser, netflex::parsing::message_body_chuncked_parser, netflex::parsing::message_body_compress_parser, netflex::parsing::message_body_deflate_parser, and netflex::parsing::message_body_gzip_parser.
|
pure virtual |
consume input data to parse it and init the request if not enough data is passed in, this method would need to be called again later input data is modified whenever a token is consumed by parsing, even if parsing is incomplete or invalid invalid data would lead to a raised exception
data | input data to be parsed |
Implemented in netflex::parsing::header_fields_parser, netflex::parsing::header_field_parser, netflex::parsing::start_line_parser, netflex::parsing::message_body_parser, netflex::parsing::message_body_content_length_parser, netflex::parsing::message_body_chuncked_parser, netflex::parsing::message_body_compress_parser, netflex::parsing::message_body_deflate_parser, and netflex::parsing::message_body_gzip_parser.
|
protected |
request