From e8a2ce1657db0b3a218c9761b5980c9533c2e261 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 11 Aug 2023 16:45:11 -0700 Subject: [PATCH] initial commits --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..5811afb --- /dev/null +++ b/README.md @@ -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") +```