http

package
v3.50.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP1 version = iota
	HTTP2
)

Variables

This section is empty.

Functions

func ParseXForwardedFor

func ParseXForwardedFor(header http.Header) []net.Address

func RemoveHopByHopHeaders

func RemoveHopByHopHeaders(header http.Header)

Types

type SniffHeader added in v3.30.1

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

func SniffHTTP added in v3.30.1

func SniffHTTP(b []byte) (*SniffHeader, error)

func (*SniffHeader) Domain added in v3.30.1

func (h *SniffHeader) Domain() string

func (*SniffHeader) Protocol added in v3.30.1

func (h *SniffHeader) Protocol() string

Jump to

Keyboard shortcuts

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