NAWA 0.9
Web Application Framework for C++
nawa Namespace Reference

Namespaces

namespace  crypto
 
namespace  encoding
 
namespace  hashing
 
namespace  mail
 
namespace  oss
 
namespace  request
 
namespace  utils
 

Classes

class  AccessFilter
 
class  AccessFilterList
 
class  AppInit
 
class  AuthFilter
 
class  BlockFilter
 
class  Config
 
class  Connection
 
struct  ConnectionInitContainer
 
class  Cookie
 
class  Exception
 
class  FastcgiRequestHandler
 
class  File
 
struct  FlushCallbackContainer
 
class  ForwardFilter
 
class  HandleRequestFunctionWrapper
 
class  HttpRequestHandler
 
class  Log
 
class  MimeMultipart
 
class  Request
 
class  RequestHandler
 
struct  RequestInitContainer
 
class  Session
 

Typedefs

using HandleRequestFunction = std::function< int(nawa::Connection &)>
 
using DestructionCallbackFunction = std::function< void(void *)>
 
using FlushCallbackFunction = std::function< void(FlushCallbackContainer)>
 

Class Documentation

◆ nawa::ConnectionInitContainer

struct nawa::ConnectionInitContainer

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

Definition at line 35 of file ConnectionInitContainer.h.

Class Members
FlushCallbackFunction flushCallback

Callback function which takes a nawa::FlushCallbackContainer and flushes the response to the user.

Config config

The NAWA config.

RequestInitContainer requestInit

The RequestInitContainer containing necessary request data.

◆ 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.

Typedef Documentation

◆ HandleRequestFunction

using nawa::HandleRequestFunction = typedef std::function<int(nawa::Connection&)>

Definition at line 32 of file HandleRequestFunction.h.

◆ DestructionCallbackFunction

using nawa::DestructionCallbackFunction = typedef std::function<void(void*)>

Definition at line 33 of file HandleRequestFunction.h.

◆ FlushCallbackFunction

using nawa::FlushCallbackFunction = typedef std::function<void(FlushCallbackContainer)>

Definition at line 55 of file FlushCallbackContainer.h.