http

package
v2.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServeTLS

func ListenAndServeTLS(addr, certFile, keyFile, caCertFile string, handler http.Handler) error

ListenAndServeTLS only supprot gmtls single cert mode. For gmtls, use NewTLSListener

func NewClient

func NewClient(config *cmtls.Config) *http.Client

func NewTLSListener

func NewTLSListener(inner net.Listener, config *cmtls.Config) net.Listener

NewTLSListener returns a listener with tls.Config, which support gmtls and tls

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL