cgv
Loading...
Searching...
No Matches
http_request.h
1#pragma once
2
3#include <string>
4#include <map>
5
6namespace cgv {
7 namespace os {
8
11{
13 std::string request;
17 std::string method;
19 std::string path;
21 std::map<std::string, std::string> params;
26 std::string username;
28 std::string password;
30
31 std::string accept;
32 std::string accept_language;
33 std::string accept_encoding;
34 std::string user_agent;
35
42 std::string status;
45 std::string auth_realm;
47 std::string answer;
48};
49
50 }
51}
the cgv namespace
Definition print.h:11
structure that contains all input and output parameters of a http request
bool authentication_given
authentication_given is true when the user has entered a username and password.
std::string request
this is the complete request received by the server
std::string status
status: used to transmit server's error status, such as
std::string answer
set this member to the html page to be returned
std::string password
password of authentification
std::string username
user name of authentification
std::string auth_realm
auth_realm: allows to set the basic realm for an authentication, no need to additionally set status i...