Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTP1 version = iota HTTP2 )
Variables ¶
This section is empty.
Functions ¶
func ParseHost ¶
ParseHost splits host and port from a raw string. Default port is used when raw string doesn't contain port.
func RemoveHopByHopHeaders ¶
Types ¶
type SniffHeader ¶
type SniffHeader struct {
// contains filtered or unexported fields
}
func SniffHTTP ¶
func SniffHTTP(b []byte) (*SniffHeader, error)
func (*SniffHeader) Domain ¶
func (h *SniffHeader) Domain() string
func (*SniffHeader) Protocol ¶
func (h *SniffHeader) Protocol() string
Click to show internal directories.
Click to hide internal directories.