initial commits

master
Charles Iliya Krempeaux 2023-08-11 16:45:11 -07:00
parent 7c7851385b
commit e8a2ce1657
1 changed files with 23 additions and 0 deletions

23
README.md 100644
View File

@ -0,0 +1,23 @@
# 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/github.com/reiver/go-httpaccess
[![GoDoc](https://godoc.org/github.com/reiver/go-httpaccess?status.svg)](https://godoc.org/github.com/reiver/go-httpaccess)
## Example
```go
//
values := httprequest.Values("Accept")
// ...
accept, err := httpaccess.Parse(values...)
// ...
mediatype, err := accept.Negotiate("text/gemini", "text/html", "application/xhtml+xml")
```