#include <http.h>
Public Member Functions | |
Header (Verification_level=HTTP_CHECK_WEAK) | |
unsigned | content_length () const |
bool | conn_keep_alive () const |
bool | expect_continue () const |
void | set_content_length (size_t ln) |
void | set_conn_keep_alive (bool) |
void | set_option (const std::string &name, const std::string &value) |
std::string | dump () const |
Return text representation of header including final CRLF. | |
Protected Types | |
typedef boost::function< void(const std::string &)> | Option_validator_fn |
Protected Member Functions | |
bool | option_exists (const std::string &) const |
void | set_option_default (const std::string &name, const std::string &value) |
void | set_option_default (const std::string &name, unsigned value) |
void | set_option_checked (const std::string &name, const std::string &value) |
void | set_option (const std::string &name, size_t value) |
const std::string & | get_head_line () const |
std::string | get_string (const std::string &name) const |
unsigned | get_unsigned (const std::string &name) const |
void | register_validator (const std::string &, Option_validator_fn, Verification_level) |
void | parse (const std::string &) |
HTTP header. Responsible for parsing, creating generic HTTP headers.