#include <Response.h>
Definition at line 38 of file Response.h.
◆ Response() [1/3]
web::http::client::Response::Response |
( |
| ) |
|
|
default |
◆ Response() [2/3]
web::http::client::Response::Response |
( |
Response & | | ) |
|
|
explicitdelete |
◆ Response() [3/3]
web::http::client::Response::Response |
( |
Response && | | ) |
|
|
explicitdefaultnoexcept |
◆ cookie()
const std::string & web::http::client::Response::cookie |
( |
const std::string & | key | ) |
const |
Definition at line 47 of file Response.cpp.
47 {
48 const CiStringMap<CookieOptions>::const_iterator it =
cookies.find(key);
49
51 return it->second.getValue();
52 }
53
55 }
CiStringMap< CookieOptions > cookies
References nullstr.
◆ get()
const std::string & web::http::client::Response::get |
( |
const std::string & | key, |
|
|
int | i = 0 ) const |
Definition at line 31 of file Response.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
References nullstr.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ResponseParser
◆ SocketContext
◆ body
std::vector<char> web::http::client::Response::body |
◆ connectionState
◆ cookies
◆ headers
CiStringMap<std::string> web::http::client::Response::headers |
◆ httpMajor
int web::http::client::Response::httpMajor = 0 |
◆ httpMinor
int web::http::client::Response::httpMinor = 0 |
◆ httpVersion
std::string web::http::client::Response::httpVersion |
◆ nullstr
std::string web::http::client::Response::nullstr |
|
private |
◆ reason
std::string web::http::client::Response::reason |
◆ statusCode
std::string web::http::client::Response::statusCode |
The documentation for this class was generated from the following files: