proto

package
v0.15.8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBytes

func ToBytes(proto Proto) []byte

Types

type Proto

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

	WebSocket

	HTTP1 = HTTP09 | 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 (i Proto) String() string

Jump to

Keyboard shortcuts

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