#include "web/http/STREAM/NET/Client.h"
Go to the source code of this file.
◆ CLIENT_INCLUDE
#define CLIENT_INCLUDE QUOTE_INCLUDE(web/http/STREAM/NET/Client.h) |
◆ LONG
◆ QUOTE_INCLUDE
◆ STR_INCLUDE
#define STR_INCLUDE |
( |
|
a | ) |
#a |
◆ logResponse()
Definition at line 67 of file clients.h.
67 {
68 VLOG(1) << req->getSocketContext()->getSocketConnection()->getConnectionName() << " HTTP response: " << req->method << " " << req->url
69 << " HTTP/" << req->httpMajor << "." << req->httpMinor << "\n"
71 req->url,
72 "HTTP/" + std::to_string(req->httpMajor) + "." + std::to_string(req->httpMinor),
73 req->getQueries(),
74 req->getHeaders(),
75 req->getCookies(),
76 {})
77 << "\n"
78 <<
httputils::toString(res->httpVersion, res->statusCode, res->reason, res->headers, res->cookies, res->body);
79}
std::string toString(const std::string &method, const std::string &url, const std::string &version, const web::http::CiStringMap< std::string > &queries, const web::http::CiStringMap< std::string > &header, const web::http::CiStringMap< std::string > &cookies, const std::vector< char > &body)