NAWA 0.9
Web Application Framework for C++
RequestInitContainer.h File Reference

Container used by request handlers to initiate the nawa::Request object. More...

#include <nawa/request/File.h>
#include <string>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

struct  nawa::RequestInitContainer
 

Namespaces

namespace  nawa
 

Detailed Description

Container used by request handlers to initiate the nawa::Request object.

Definition in file RequestInitContainer.h.


Class Documentation

◆ nawa::RequestInitContainer

struct nawa::RequestInitContainer

Internal container filled by the RequestHandler with prerequisites for creating Connection and Request objects.

Definition at line 36 of file RequestInitContainer.h.

Class Members
unordered_map< string, string > environment

Environment variables, see Environment

unordered_multimap< string, string > getVars

The HTTP GET vars.

unordered_multimap< string, string > postVars

The HTTP POST vars, only if it is in standard format (content type multipart/form-data or application/x-www-form-urlencoded). Files are excluded and handled separately by fileVectorCallback.

unordered_multimap< string, string > cookieVars

The HTTP COOKIE vars.

string postContentType

The HTTP POST content type.

unordered_multimap< string, File > postFiles

Files submitted via POST.

shared_ptr< string > rawPost

A shared_ptr to a string which contains the raw POST data. Raw data does not have to be available if the config option {"post", "raw_access"} is set to "never", or when it's set to "nonstandard" and the POST content type is neither multipart/form-data nor application/x-www-form-urlencoded. In this case, the shared_ptr should not contain an object.