HTTP module

ServerConnectionFactory

Factory for creating per-socket [ServerConnection]({#ref classicy_1_1http_1_1ServerConnection #}) and per-request [ServerResponder]({#ref classicy_1_1http_1_1ServerResponder #}) objects.

ServerConnectionFactory

#include <icy/http/server.h>

Factory for creating per-socket [ServerConnection](icy-http-ServerConnection.html#serverconnection) and per-request [ServerResponder](icy-http-ServerResponder.html#serverresponder) objects.

Public Methods

ReturnNameDescription
ServerConnectionFactoryDefaulted constructor.
ServerConnection::PtrcreateConnection virtual inlineCreates the [ServerConnection](icy-http-ServerConnection.html#serverconnection) wrapper for an accepted TCP socket.
std::unique_ptr< ServerResponder >createResponder virtual inlineCreates the responder for the current request on connection.

ServerConnectionFactory

ServerConnectionFactory() = default

Defaulted constructor.


createConnection

virtual inline

virtual inline ServerConnection::Ptr createConnection(Server & server, const net::TCPSocket::Ptr & socket)

Creates the [ServerConnection](icy-http-ServerConnection.html#serverconnection) wrapper for an accepted TCP socket.


createResponder

virtual inline

virtual inline std::unique_ptr< ServerResponder > createResponder(ServerConnection & connection)

Creates the responder for the current request on connection.