# CommunicationUtils.hpp
This File On Github
Ask A Question
API: latest
module: oatpp
#include "oatpp/web/protocol/http/utils/CommunicationUtils.hpp"
# CommunicationUtils
Helper class for communication utils.
namespace oatpp { namespace web { namespace protocol { namespace http { namespace utils {
class CommunicationUtils {}
}}}}}
# Methods
Return Type | Name | Summary |
---|---|---|
void | considerConnectionState | Consider keep connection alive taking into account request headers, response headers and protocol version. |
# CommunicationUtils::considerConnectionState
Consider keep connection alive taking into account request headers, response headers and protocol version.
Corresponding header will be set to response if not existed before.
- @param request -
std::shared_ptr
to oatpp::web::protocol::http::incoming::Request - @param response -
std::shared_ptr
to oatpp::web::protocol::http::outgoing::Response - @param connectionState
static void considerConnectionState(const std::shared_ptr<protocol::http::incoming::Request>& request,
const std::shared_ptr<protocol::http::outgoing::Response>& response,
ConnectionState& connectionState)