Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TlsConfigForServerCerts ¶
TlsConfigForServerCerts is a returns a simple `tls.Config` with the given server cert loaded. This is useful if you can't use `http.ListenAndServerTLS` when using a custom `net.Listener`.
func TlsConfigWithHttp2Enabled ¶
TlsConfigWithHttp2Enabled makes it easy to configure the given `tls.Config` to prefer H2 connections. This is useful if you can't use `http.ListenAndServerTLS` when using a custom `net.Listener`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.