Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Types | Public Attributes | List of all members
HTTPRequest Struct Reference

#include <WebAdmin.h>

Public Types

typedef std::map< std::string, HTTPFormDataFormDataMap
 
typedef std::map< std::string, std::string > StringStringMap
 

Public Attributes

FormDataMap FormData
 Same as PostParams. More...
 
AString Method
 HTTP method used for the request ("GET", "POST" etc.) More...
 
StringStringMap Params
 Parameters given in the URL, after the questionmark. More...
 
AString Path
 The Path part of the request's URL (excluding GET params). More...
 
StringStringMap PostParams
 Parameters posted as a part of a form - either in the URL (GET method) or in the body (POST method) More...
 
AString URL
 The entire URL presented to the HTTP server. More...
 
AString Username
 Name of the logged-in user. More...
 

Detailed Description

Definition at line 40 of file WebAdmin.h.

Member Typedef Documentation

◆ FormDataMap

typedef std::map< std::string, HTTPFormData > HTTPRequest::FormDataMap

Definition at line 43 of file WebAdmin.h.

◆ StringStringMap

typedef std::map< std::string, std::string > HTTPRequest::StringStringMap

Definition at line 42 of file WebAdmin.h.

Member Data Documentation

◆ FormData

FormDataMap HTTPRequest::FormData

Same as PostParams.

Definition at line 66 of file WebAdmin.h.

◆ Method

AString HTTPRequest::Method

HTTP method used for the request ("GET", "POST" etc.)

Definition at line 49 of file WebAdmin.h.

◆ Params

StringStringMap HTTPRequest::Params

Parameters given in the URL, after the questionmark.

Definition at line 60 of file WebAdmin.h.

◆ Path

AString HTTPRequest::Path

The Path part of the request's URL (excluding GET params).

Definition at line 52 of file WebAdmin.h.

◆ PostParams

StringStringMap HTTPRequest::PostParams

Parameters posted as a part of a form - either in the URL (GET method) or in the body (POST method)

Definition at line 63 of file WebAdmin.h.

◆ URL

AString HTTPRequest::URL

The entire URL presented to the HTTP server.

Definition at line 46 of file WebAdmin.h.

◆ Username

AString HTTPRequest::Username

Name of the logged-in user.

Empty if not logged in.

Definition at line 55 of file WebAdmin.h.


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