Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer class

Properties     Methods     Events     Declared in     Licensing     

TElHTTPSServer provides server-side functionality for HTTPS protocol.


    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.




Declared in

  • Namespace: SBHTTPServer
  • Assembly: SecureBlackbox.HTTPServer
  • Unit: SBHTTPSServer
  • Package: SecureBlackbox.HTTPServer.jar
  • sbhttpsserver.h


To use this class in the development and distribution of your software projects, you need to purchase one of the following licenses:

HTTPBlackbox client+server OR SecureBlackbox Transports OR SecureBlackbox Standard OR SecureBlackbox Professional

Discuss this help topic in SecureBlackbox Forum