NAWA 0.9
Web Application Framework for C++
nawa::Request Class Reference

#include <nawa/request/Request.h>

Public Member Functions

virtual ~Request ()
 
 Request (RequestInitContainer const &initContainer)
 
request::Env const & env () const noexcept
 
request::GPC const & get () const noexcept
 
request::Post const & post () const noexcept
 
request::GPC const & cookie () const noexcept
 

Detailed Description

Represents request objects.

Definition at line 38 of file Request.h.

Constructor & Destructor Documentation

◆ ~Request()

virtual nawa::Request::~Request ( )
virtual

◆ Request()

Request::Request ( RequestInitContainer const &  initContainer)
explicit

Initialize a Request object from a RequestInitContainer.

Parameters
initContainerThe RequestInitContainer with data needed to create a Request object.

Definition at line 44 of file Request.cpp.

Member Function Documentation

◆ env()

request::Env const & nawa::Request::env ( ) const
noexcept

The Env object you should use to access environment variables.

Returns
Reference to the object.

Definition at line 48 of file Request.cpp.

◆ get()

request::GPC const & nawa::Request::get ( ) const
noexcept

The GPC object you should use to access the request's GET variables.

Returns
Reference to the object.

Definition at line 52 of file Request.cpp.

◆ post()

request::Post const & nawa::Request::post ( ) const
noexcept

The Post object you should use to access the request's POST variables.

Returns
Reference to the object.

Definition at line 56 of file Request.cpp.

◆ cookie()

request::GPC const & nawa::Request::cookie ( ) const
noexcept

The GPC object you should use to access the request's COOKIE variables.

Returns
Reference to the object.

Definition at line 60 of file Request.cpp.


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