PixelLightAPI
.
|
#include <HttpServer.h>
Public Member Functions | |
PLCORE_API | HttpServer () |
Constructor. | |
virtual PLCORE_API | ~HttpServer () |
Destructor. | |
Protected Member Functions | |
virtual PLCORE_API void | OnRequest (HttpServerConnection *pConnection, const HttpHeader *pHeader) |
A web server request has come in. | |
virtual PLCORE_API void | OnGet (HttpServerConnection *pConnection, const HttpHeader *pHeader) |
A GET request has come in. | |
virtual PLCORE_API void | OnError (HttpServerConnection *pConnection, EHttpStatus nStatus) |
An error occurred. | |
virtual PLCORE_API Connection * | CreateIncomingConnection () override |
Create a new incoming connection. | |
virtual PLCORE_API void | OnConnect (Connection &cConnection) override |
Called when a connection is established. | |
virtual PLCORE_API void | OnDisconnect (Connection &cConnection) override |
Called when a connection is closed. |
Http server.
PLCORE_API PLCore::HttpServer::HttpServer | ( | ) |
virtual PLCORE_API PLCore::HttpServer::~HttpServer | ( | ) | [virtual] |
Destructor.
virtual PLCORE_API void PLCore::HttpServer::OnRequest | ( | HttpServerConnection * | pConnection, |
const HttpHeader * | pHeader | ||
) | [protected, virtual] |
A web server request has come in.
[in] | pConnection | Connection |
[in] | pHeader | HTTP header |
virtual PLCORE_API void PLCore::HttpServer::OnGet | ( | HttpServerConnection * | pConnection, |
const HttpHeader * | pHeader | ||
) | [protected, virtual] |
A GET request has come in.
[in] | pConnection | Connection |
[in] | pHeader | HTTP header |
virtual PLCORE_API void PLCore::HttpServer::OnError | ( | HttpServerConnection * | pConnection, |
EHttpStatus | nStatus | ||
) | [protected, virtual] |
An error occurred.
[in] | pConnection | Connection |
[in] | nStatus | HTTP status code |
virtual PLCORE_API Connection* PLCore::HttpServer::CreateIncomingConnection | ( | ) | [override, protected, virtual] |
virtual PLCORE_API void PLCore::HttpServer::OnConnect | ( | Connection & | cConnection | ) | [override, protected, virtual] |
Called when a connection is established.
[in] | cConnection | The new connection |
Reimplemented from PLCore::Host.
virtual PLCORE_API void PLCore::HttpServer::OnDisconnect | ( | Connection & | cConnection | ) | [override, protected, virtual] |
Called when a connection is closed.
[in] | cConnection | The closed connection |
Reimplemented from PLCore::Host.
|