HTTP Content-Type Autonegotiation functions for golang.
The functions in this package implement the behaviour specified in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html.
.
This golang package is a mirror of bitbucket.org/ww/goautoneg.
.
func Negotiate(header string, alternatives []string) (content_type string)
Negotiate the most appropriate content_type given the accept header and a
list of alternatives.
.
func ParseAccept(header string) (accept []Accept)
Parse an Accept Header string returning a sorted list of clauses.
Installed Size: 20.5 kB
Architectures: all