version

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Key = "http-version"

Variables

This section is empty.

Functions

func Format

func Format(v HTTP) string

func SetIfMissing

func SetIfMissing(m map[string]string, v HTTP) map[string]string

Types

type HTTP

type HTTP int
const (
	Unknown HTTP = iota
	V10
	V11
	V2
)

func ParseToken

func ParseToken(raw string) (HTTP, bool)

func ParseValue

func ParseValue(raw string) (HTTP, bool)

func SplitToken

func SplitToken(fields []string) ([]string, HTTP)

Jump to

Keyboard shortcuts

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