# Poco::Net

# class HTTPReactorServer

Library:
Package:
Header: Poco/Net/HTTPReactorServer.h

## Member Summary

Member Functions: onError, onMessage, sendErrorResponse, start, stop

## Constructors

### HTTPReactorServer

HTTPReactorServer(
int port,
HTTPServerParams::Ptr pParams,
HTTPRequestHandlerFactory::Ptr pFactory
);

## Destructor

### ~HTTPReactorServer

~HTTPReactorServer();

## Member Functions

### onError

void onError(
const Poco::Exception & ex
);

### onMessage

void onMessage(
const TcpReactorConnectionPtr & conn
);

### sendErrorResponse

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

### start

void start();

### stop

void stop();