|
bref
API 2014 of the Zia HTTP server.
|
HTTP request container. More...
#include <HttpRequest.h>
Inherits std::map< std::string, BrefValue >.
Public Member Functions | |
| HttpRequest () | |
| Construct an empty request. | |
| ~HttpRequest () | |
| Destructor. | |
| request_methods::Type | getMethod () const |
| Get HTTP method. | |
| const std::string & | getUri () const |
| Get HTTP request URI. | |
| const Version & | getVersion () const |
| Get current HTTP version. | |
| void | setMethod (request_methods::Type) |
| Set used HTTP method. | |
| void | setUri (const std::string &) |
| Set asked HTTP URI. | |
| void | setVersion (const Version &) |
| Set HTTP version. | |
Private Attributes | |
| request_methods::Type | method_ |
| Contains HTTP method. | |
| std::string | uri_ |
| Contains HTTP request URI. | |
| Version | version_ |
| Contains used HTTP version. | |
Get HTTP method.
| const std::string& bref::HttpRequest::getUri | ( | ) | const |
Get HTTP request URI.
| const Version& bref::HttpRequest::getVersion | ( | ) | const |
Get current HTTP version.
Contains HTTP method.
1.8.0