TsgcWebSocketHTTPServer | HTTP/2 Server

sgcWebSockets HTTP Server allows 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 user exactly equal than with HTTP/1.1 protocol, read more.

 

When HTTP/2 protocol is enabled, 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 accessing to properties HTTP2Options.Events, here you can customize if you want be notified every time there is a new HTTP/2 connection and/or disconnection.