#include <Request.h>
Definition at line 38 of file Request.h.
◆ Request() [1/3]
web::http::server::Request::Request |
( |
| ) |
|
|
default |
◆ Request() [2/3]
web::http::server::Request::Request |
( |
Request & | | ) |
|
|
explicitdelete |
◆ Request() [3/3]
web::http::server::Request::Request |
( |
Request && | | ) |
|
|
explicitdefaultnoexcept |
◆ cookie()
const std::string & web::http::server::Request::cookie |
( |
const std::string & | key | ) |
const |
Definition at line 47 of file Request.cpp.
47 {
48 const std::map<std::string, std::string>::const_iterator it =
cookies.find(key);
49
51 return it->second;
52 }
53
55 }
CiStringMap< std::string > cookies
◆ get()
const std::string & web::http::server::Request::get |
( |
const std::string & | key, |
|
|
int | i = 0 ) const |
Definition at line 31 of file Request.cpp.
31 {
33 std::pair<std::multimap<std::string, std::string>::const_iterator, std::multimap<std::string, std::string>::const_iterator>
34 range =
headers.equal_range(key);
35
36 if (std::distance(range.first, range.second) >= i) {
37 std::advance(range.first, i);
38 return (*(range.first)).second;
39 }
40
42 }
43
45 }
CiStringMap< std::string > headers
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ query()
const std::string & web::http::server::Request::query |
( |
const std::string & | key | ) |
const |
Definition at line 57 of file Request.cpp.
57 {
58 const std::map<std::string, std::string>::const_iterator it =
queries.find(key);
59
61 return it->second;
62 }
63
65 }
CiStringMap< std::string > queries
◆ RequestParser
◆ SocketContext
◆ body
std::vector<char> web::http::server::Request::body |
◆ connectionState
◆ cookies
CiStringMap<std::string> web::http::server::Request::cookies |
◆ headers
CiStringMap<std::string> web::http::server::Request::headers |
◆ httpMajor
int web::http::server::Request::httpMajor = 0 |
◆ httpMinor
int web::http::server::Request::httpMinor = 0 |
◆ httpVersion
std::string web::http::server::Request::httpVersion |
◆ method
std::string web::http::server::Request::method |
◆ nullstr
std::string web::http::server::Request::nullstr |
|
private |
◆ queries
CiStringMap<std::string> web::http::server::Request::queries |
◆ url
std::string web::http::server::Request::url |
The documentation for this class was generated from the following files: