TsgcWebSocketHTTPServer | HTTP/2 Server

sgcWebSockets HTTP Server allows you to handle HTTP/1.1 and HTTP/2.0 requests, you can enable HTTP/2 protocol using HTTP2Options of Server.

 

Set HTTP2Options.Enabled = true to allow the server to accept HTTP/2 protocol requests. The requests can be processed by the user exactly the same as with the HTTP/1.1 protocol, read more.

 

When the HTTP/2 protocol is enabled, the server will still support HTTP/1.1 requests.

 

By default, OnConnect and OnDisconnect events won't be called when there is a new HTTP/2 connection, but this can be modified by accessing the HTTP2Options.Events properties, where you can customize whether you want to be notified every time there is a new HTTP/2 connection and/or disconnection.