![]() |
Webdar 1.0.0
Web user interface to libdar
|
parser class is given a connection object and format the incoming byte flow in structured request objects More...
#include <parser.hpp>
Public Member Functions | |
parser (std::unique_ptr< proto_connexion > &input, const std::shared_ptr< central_report > &log) | |
parser (const parser &ref)=delete | |
parser (parser &&ref) noexcept=delete | |
parser & | operator= (const parser &ref)=delete |
parser & | operator= (parser &&ref) noexcept=delete |
~parser () | |
destructor | |
proto_connexion::status | get_status () const |
provides visibility on the connection status | |
bool | get_next_request_uri (uri &val) |
const request & | get_request () |
provides the next request | |
void | send_answer (answer &ans) |
modify the answer to conform to RFC 1945 before sending it | |
void | close () |
closes the current connection | |
parser class is given a connection object and format the incoming byte flow in structured request objects
parser::parser | ( | std::unique_ptr< proto_connexion > & | input, |
const std::shared_ptr< central_report > & | log | ||
) |
constructor
[in] | input | is the proto_connexion to read data from |
[in] | log | where to log messages |
bool parser::get_next_request_uri | ( | uri & | val | ) |
get the next request URI
[out] | val | the value of the next request uri |