https://github.com/go-http-utils/etag
:ticket:HTTP etag support middleware for Go
https://github.com/go-http-utils/etag
Last synced: 5 months ago
JSON representation
:ticket:HTTP etag support middleware for Go
- Host: GitHub
- URL: https://github.com/go-http-utils/etag
- Owner: go-http-utils
- License: mit
- Created: 2016-11-20T13:41:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T01:54:01.000Z (about 3 years ago)
- Last Synced: 2024-06-18T18:31:11.346Z (about 2 years ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-http-utils/etag
- Size: 6.84 KB
- Stars: 12
- Watchers: 1
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# etag
[](https://travis-ci.org/go-http-utils/etag)
[](https://coveralls.io/github/go-http-utils/etag?branch=master)
HTTP etag support middleware for Go.
## Installation
```
go get -u github.com/go-http-utils/etag
```
## Documentation
API documentation can be found here: https://godoc.org/github.com/go-http-utils/etag
## Usage
```go
import (
"github.com/go-http-utils/etag"
)
```
```go
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
})
http.ListenAndServe(":8080", etag.Handler(mux, false))
```