SNode.C
|
#include <Response.h>
Public Member Functions | |
Response ()=default | |
Response (Response &)=delete | |
Response (Response &&) noexcept=default | |
Response & | operator= (Response &)=delete |
Response & | operator= (Response &&) noexcept=delete |
const std::string & | get (const std::string &key, int i=0) const |
const std::string & | cookie (const std::string &key) const |
Public Attributes | |
std::string | httpVersion |
std::string | statusCode |
std::string | reason |
int | httpMajor = 0 |
int | httpMinor = 0 |
CiStringMap< std::string > | headers |
CiStringMap< CookieOptions > | cookies |
std::vector< char > | body |
Protected Attributes | |
ConnectionState | connectionState = ConnectionState::Default |
Private Attributes | |
std::string | nullstr |
Friends | |
class | SocketContext |
class | ResponseParser |
Definition at line 60 of file Response.h.
|
default |
|
explicitdelete |
|
explicitdefaultnoexcept |
const std::string & web::http::client::Response::cookie | ( | const std::string & | key | ) | const |
Definition at line 69 of file Response.cpp.
References cookies, web::http::CookieOptions::getValue(), and nullstr.
const std::string & web::http::client::Response::get | ( | const std::string & | key, |
int | i = 0 |
||
) | const |
Definition at line 53 of file Response.cpp.
References headers, and nullstr.
Referenced by web::websocket::client::SocketContextUpgradeFactory::create(), web::http::client::SocketContextUpgradeFactorySelector::select(), and web::http::client::Request::upgrade().
|
friend |
Definition at line 93 of file Response.h.
|
friend |
Definition at line 91 of file Response.h.
std::vector<char> web::http::client::Response::body |
Definition at line 86 of file Response.h.
Referenced by web::http::client::ResponseParser::getResponse(), main(), and web::http::client::ResponseParser::parsingFinished().
|
protected |
Definition at line 74 of file Response.h.
Referenced by web::http::client::ResponseParser::analyzeHeader(), and web::http::client::SocketContext::deliverResponse().
CiStringMap<CookieOptions> web::http::client::Response::cookies |
Definition at line 85 of file Response.h.
Referenced by web::http::client::ResponseParser::analyzeHeader(), cookie(), and main().
CiStringMap<std::string> web::http::client::Response::headers |
Definition at line 84 of file Response.h.
Referenced by get(), main(), and web::http::client::ResponseParser::parsingFinished().
int web::http::client::Response::httpMajor = 0 |
Definition at line 81 of file Response.h.
Referenced by web::http::client::SocketContext::deliverResponse(), and web::http::client::ResponseParser::parsingFinished().
int web::http::client::Response::httpMinor = 0 |
Definition at line 82 of file Response.h.
Referenced by web::http::client::SocketContext::deliverResponse(), and web::http::client::ResponseParser::parsingFinished().
std::string web::http::client::Response::httpVersion |
Definition at line 78 of file Response.h.
Referenced by main(), and web::http::client::ResponseParser::parseStartLine().
|
private |
Definition at line 89 of file Response.h.
std::string web::http::client::Response::reason |
Definition at line 80 of file Response.h.
Referenced by main(), and web::http::client::ResponseParser::parseStartLine().
std::string web::http::client::Response::statusCode |
Definition at line 79 of file Response.h.
Referenced by main(), and web::http::client::ResponseParser::parseStartLine().