| 
				
					
						 | 
			||
|---|---|---|
| mediarange | ||
| LICENSE | ||
| README.md | ||
| go.mod | ||
| httpaccept.go | ||
| httpaccept_parse_test.go | ||
| httpaccept_string_test.go | ||
| notacceptable.go | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	go-httpaccess
Package httpaccess implements tools to deal with the HTTP "Accept" header.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-httpaccess
Example
//
values := httprequest.Header.Values("Accept")
// ...
accept, err := httpaccess.Parse(values...)
// ...
mediatype, err := accept.Negotiate("text/gemini", "text/html", "application/xhtml+xml")