Bug#981797: ITP: golang-github-munnerz-goautoneg -- HTTP Content-Type Autonegotiation.
Package: wnpp
Severity: wishlist
Owner: Arthur Diniz <arthurbdiniz@gmail.com>
* Package name : golang-github-munnerz-goautoneg
Version : 0.0~git20191010.a7dc8b6-1
Upstream Author : James Munnelly
* URL : https://github.com/munnerz/goautoneg
* License : BSD-3-clause
Programming Lang: Go
Description : HTTP Content-Type Autonegotiation.
The functions in this package implement the behaviour specified in
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
.
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
Reply to: