Protocol

TLS

Hertz Server & Client currently only supports TLS for the standard network library, and the support for the Netpoll network library is still on the way. Usage Reference: Example

ALPN

ALPN can be switched on or off with a switch after TLS is enabled.(depending on whether all required protocol Servers are currently registered via Protocol Suite).

WebSocket

Hertz implements support for WebSocket based on hijack.

HTTP2

Hertz references net/http2 to implement support for HTTP2, while also supporting both h2 and h2c.

HTTP3

Hertz reference quic-go to implement support for HTTP3.

SSE

Hertz supports SSE, allowing the server to send events to the client through simple HTTP response.