Discuss this help topic in SecureBlackbox Forum
TElHTTPSServer provides server-side functionality for HTTPS protocol.
Description
TElHTTPSServer is used to add SSL/TLS support to server
side of HTTP connection (the server side is the side which accepts connections
initiated by clients).
To accept a connection, call
Open method.
When TElHTTPSServer receives client's requests, it fires
OnRequestHeadersReceived
or
OnRequestBodyReceived events, correspondingly.
To send the server's response, use methods
SendResponseHeaders
and
SendResponseData.
When there are encrypted data to be sent to the socket, TElHTTPSServer will
fire
OnSend event.
When TElHTTPSServer needs data from the socket, it fires
OnReceive event.
When incoming data were processed,
OnData event is
fired. If you use non-blocking mode, you can use
DataAvailable
method to tell TElHTTPSServer that there are some data in the socket which can be
read.
By default, TElHTTPSServer is allowed to work using
all SSL/TLS versions and all cipher suites. You can disable or enable some of the
versions using
SSLVersions property.
TElHTTPSServer starts to act as a Web Socket server automatically when it receives an appropriate request from a client.
In this case, OnBeforeWebSocketServerUsed is called, followed by
OnWebSocketConnectionEstablished when a WS connection has been established.
To use this class in the development and distribution of your software projects, you need to purchase one of the following licenses:
SecureBlackbox Professional