SNode.C
|
#include <Request.h>
Public Member Functions | |
Request ()=default | |
Request (const std::shared_ptr< web::http::server::Request > &request) noexcept | |
Request (Request &)=delete | |
Request (Request &&) noexcept=delete | |
Request & | operator= (Request &)=delete |
Request & | operator= (Request &&) noexcept=delete |
const std::string & | param (const std::string &id, const std::string &fallBack="") |
const std::string & | get (const std::string &key, int i=0) const |
const std::string & | cookie (const std::string &key) const |
const std::string & | query (const std::string &key) const |
![]() | |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
constexpr bool | setAttribute (const Attribute &attribute, const std::string &subKey="", bool overwrite=false) |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
constexpr bool | setAttribute (const Attribute &&attribute, const std::string &subKey="", bool overwrite=false) |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
constexpr bool | delAttribute (const std::string &subKey="") |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
constexpr bool | hasAttribute (const std::string &subKey="") const |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
bool | getAttribute (const std::function< void(Attribute &)> &onFound, const std::string &subKey="") const |
template<InjectableAttribute Attribute, fixed_string key = ""> | |
void | getAttribute (const std::function< void(Attribute &)> &onFound, const std::function< void(const std::string &)> &onNotFound, const std::string &subKey="") const |
void | reset () |
Public Attributes | |
std::string | originalUrl |
std::string | path |
std::map< std::string, std::string > | params |
std::string | method |
std::string | url |
std::string | httpVersion |
int | httpMajor = 0 |
int | httpMinor = 0 |
web::http::CiStringMap< std::string > | queries |
web::http::CiStringMap< std::string > | headers |
web::http::CiStringMap< std::string > | cookies |
std::vector< char > | body |
Private Member Functions | |
Request & | extend () |
Private Attributes | |
std::shared_ptr< web::http::server::Request > | requestBase |
std::string | nullstr |
Friends | |
class | Response |
|
default |
|
explicitnoexcept |
Definition at line 34 of file Request.cpp.
References extend(), and Request().
Referenced by Request().
|
explicitdelete |
|
explicitdeletenoexcept |
const std::string & express::Request::cookie | ( | const std::string & | key | ) | const |
Definition at line 67 of file Request.cpp.
|
private |
Definition at line 52 of file Request.cpp.
Referenced by Request().
const std::string & express::Request::get | ( | const std::string & | key, |
int | i = 0 ) const |
Definition at line 63 of file Request.cpp.
const std::string & express::Request::param | ( | const std::string & | id, |
const std::string & | fallBack = "" ) |
Definition at line 48 of file Request.cpp.
const std::string & express::Request::query | ( | const std::string & | key | ) | const |
Definition at line 77 of file Request.cpp.
web::http::CiStringMap<std::string> express::Request::cookies |
web::http::CiStringMap<std::string> express::Request::headers |
std::map<std::string, std::string> express::Request::params |
web::http::CiStringMap<std::string> express::Request::queries |
|
private |