snicheck

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNICheck

type SNICheck struct {
	// contains filtered or unexported fields
}

SNICheck is an HTTP handler that checks whether the TLS configuration for the server name is the same as for the host header.

func New

func New(tlsOptionsForHost map[string]string, next http.Handler) *SNICheck

New creates a new SNICheck.

func (SNICheck) ServeHTTP

func (s SNICheck) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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