ui-utilcpp
1.8.5
|
Parse and represent a request's request line. More...
#include <Header.hpp>
Public Member Functions | |
std::string | get () const |
Get composition. | |
Set (and validate) components. | |
RequestLine & | setMethod (Method const &method) |
RequestLine & | setMethod (std::string const &method) |
RequestLine & | setURI (std::string const &uri) |
RequestLine & | setVersion (std::string const &version) |
Get components. | |
Method const & | getMethod () const |
std::string const & | getMethodStr () const |
std::string const & | getURI () const |
std::string const & | getVersion () const |
HTTP 1.1 methods and string mappings. | |
| |
enum | Method { Options_, Get_, Head_, Post_, Put_, Delete_, Trace_, Connect_ } |
static Method | str2Method (std::string const &method) |
RequestLine (Method const &method=Post_, std::string const &uri="/", std::string const &version="HTTP/1.1") | |
Construct from components. | |
RequestLine (std::string const &line) | |
Construct from composition (parse). | |
Parse and represent a request's request line.
Example request lines: "POST / HTTP/1.1", "GET /humbug&a=auchHumbug HTTP/1.1".