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