class Poco::Net::HTTPServerConnection

Overview

This subclass of TCPServerConnection handles HTTP connections. Moreā€¦

#include <HTTPServerConnection.h>

class HTTPServerConnection: public Poco::Net::TCPServerConnection
{
public:
    // construction

    HTTPServerConnection(
        const StreamSocket& socket,
        HTTPServerParams::Ptr pParams,
        HTTPRequestHandlerFactory::Ptr pFactory
        );

    // methods

    virtual
    void
    run();

protected:
    // methods

    void
    sendErrorResponse(
        HTTPServerSession& session,
        HTTPResponse::HTTPStatus status
        );

    void
    onServerStopped(const bool& abortCurrent);
};

Inherited Members

public:
    // methods

    virtual
    void
    run() = 0;

protected:
    // methods

    StreamSocket&
    socket();

    void
    start();

Detailed Documentation

This subclass of TCPServerConnection handles HTTP connections.

Construction

HTTPServerConnection(
    const StreamSocket& socket,
    HTTPServerParams::Ptr pParams,
    HTTPRequestHandlerFactory::Ptr pFactory
    )

Creates the HTTPServerConnection.

Methods

virtual
void
run()

Handles all HTTP requests coming in.