https://github.com/go-http-utils/headers
:family:HTTP header constants for Gophers
https://github.com/go-http-utils/headers
Last synced: 5 months ago
JSON representation
:family:HTTP header constants for Gophers
- Host: GitHub
- URL: https://github.com/go-http-utils/headers
- Owner: go-http-utils
- License: mit
- Created: 2016-11-16T09:28:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T04:20:06.000Z (about 2 years ago)
- Last Synced: 2024-06-18T16:51:23.969Z (about 2 years ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-http-utils/headers
- Size: 6.84 KB
- Stars: 21
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# headers
[](https://travis-ci.org/go-http-utils/headers)
[](https://coveralls.io/github/go-http-utils/headers?branch=master)
HTTP header constants for Gophers.
## Installation
```sh
go get -u github.com/go-http-utils/headers
```
## Documentation
https://godoc.org/github.com/go-http-utils/headers
## Usage
```go
import (
"fmt"
"github.com/go-http-utils/headers"
)
fmt.Println(headers.AcceptCharset)
// -> "Accept-Charset"
fmt.Println(headers.IfNoneMatch)
// -> "If-None-Match"
fmt.Println(headers.Normalize("content-type"))
// -> "Content-Type"
```