acceptHeaders

package
v1.15.2-go1.9to1.15 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accepts

type Accepts []acceptItem

func ParseAccepts

func ParseAccepts(input string) Accepts

func (Accepts) GetPreferredValue

func (accepts Accepts) GetPreferredValue(availables []string) (index int, value string, ok bool)

make sure `accepts` is sorted

func (Accepts) Len

func (accepts Accepts) Len() int

func (Accepts) Less

func (accepts Accepts) Less(i, j int) bool

func (Accepts) Swap

func (accepts Accepts) Swap(i, j int)

Jump to

Keyboard shortcuts

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