# 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.

static void considerConnectionState(const std::shared_ptr<protocol::http::incoming::Request>& request,
                                    const std::shared_ptr<protocol::http::outgoing::Response>& response,
                                    ConnectionState& connectionState)