package goautoneg
import "github.com/munnerz/goautoneg"
Index ¶
- func Negotiate(header string, alternatives []string) (content_type string)
- func ParseAccept(header string) acceptSlice
- type Accept
Functions ¶
func Negotiate ¶
Negotiate the most appropriate content_type given the accept header and a list of alternatives.
func ParseAccept ¶
func ParseAccept(header string) acceptSlice
Parse an Accept Header string returning a sorted list of clauses
Types ¶
type Accept ¶
Structure to represent a clause in an HTTP Accept Header
Source Files ¶
- Version
- v0.0.0-20191010083416-a7dc8b61c822 (latest)
- Published
- Oct 10, 2019
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 weeks ago –
Tools for package owners.