|
cgv
|
structure that contains all input and output parameters of a http request More...
#include <http_request.h>
Public Attributes | |
| std::string | request |
| this is the complete request received by the server | |
information of request split into fields | |
| std::string | method |
| std::string | path |
| std::map< std::string, std::string > | params |
| bool | authentication_given |
| std::string | username |
| user name of authentification | |
| std::string | password |
| password of authentification | |
| std::string | accept |
| std::string | accept_language |
| std::string | accept_encoding |
| std::string | user_agent |
return values | |
| std::string | status |
| std::string | auth_realm |
| std::string | answer |
| set this member to the html page to be returned | |
structure that contains all input and output parameters of a http request
| std::string cgv::os::http_request::auth_realm |
auth_realm: allows to set the basic realm for an authentication, no need to additionally set status if set
| bool cgv::os::http_request::authentication_given |
authentication_given is true when the user has entered a username and password. These can then be read from username and password
| std::string cgv::os::http_request::status |
status: used to transmit server's error status, such as