FlightGear next
flightgear::http::MongooseHTTPRequest Class Reference

A Helper class to create a HTTPRequest from a mongoose connection struct. More...

Inherits flightgear::http::HTTPRequest.

Public Member Functions

 MongooseHTTPRequest (struct mg_connection *connection)
 Constructs a HTTPRequest from a mongoose connection struct Copies all fields into STL compatible local elements, performs urlDecode etc.
 
- Public Member Functions inherited from flightgear::http::HTTPRequest
 HTTPRequest ()
 
virtual ~HTTPRequest ()
 

Static Public Member Functions

static string urlDecode (const string &s)
 Decodes a URL encoded string replaces '+' by ' ' replaces nn hexdigits.
 

Additional Inherited Members

- Public Attributes inherited from flightgear::http::HTTPRequest
std::string Method
 
std::string Uri
 
std::string HttpVersion
 
std::string QueryString
 
std::string remoteAddress
 
int remotePort
 
std::string localAddress
 
int localPort
 
std::string Content
 
StringMap RequestVariables
 
StringMap HeaderVariables
 

Detailed Description

A Helper class to create a HTTPRequest from a mongoose connection struct.

Definition at line 82 of file httpd.cxx.

Constructor & Destructor Documentation

◆ MongooseHTTPRequest()

flightgear::http::MongooseHTTPRequest::MongooseHTTPRequest ( struct mg_connection * connection)
inline

Constructs a HTTPRequest from a mongoose connection struct Copies all fields into STL compatible local elements, performs urlDecode etc.

Parameters
connectionthe mongoose connection struct with the source data

Definition at line 108 of file httpd.cxx.

Member Function Documentation

◆ urlDecode()

static string flightgear::http::MongooseHTTPRequest::urlDecode ( const string & s)
inlinestatic

Decodes a URL encoded string replaces '+' by ' ' replaces nn hexdigits.

Parameters
sThe source string do decode
Returns
The decoded String

Definition at line 143 of file httpd.cxx.


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