proto

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proto

type Proto uint8
const (
	Unknown Proto = 0
	HTTP10  Proto = 1 << iota
	HTTP11
	HTTP2

	HTTP1 = HTTP10 | HTTP11
)

func ChooseUpgrade

func ChooseUpgrade(line string) Proto

func FromBytes added in v0.8.1

func FromBytes(raw []byte) Proto

func Parse

func Parse(major, minor uint8) Proto

func (Proto) String added in v0.15.5

func (p Proto) String() string

String returns protocol as a string WITH A TRAILING SPACE

Jump to

Keyboard shortcuts

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