cgv
cgv::os::http_request Struct Reference

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
 

Detailed Description

structure that contains all input and output parameters of a http request

Member Data Documentation

◆ auth_realm

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

◆ authentication_given

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

◆ status

std::string cgv::os::http_request::status

status: used to transmit server's error status, such as

  • 202 OK (this is set by default)
  • 404 Not Found and so on.

The documentation for this struct was generated from the following file: