negotiation

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectQValue

func SelectQValue(header string, allowed []string) string

SelectQValue selects and returns the best value from the allowed set given a header with optional quality values, as you would get for an Accept or Accept-Encoding header. The *first* item in allowed is preferred if there is a tie. If nothing matches, returns an empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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