mikey0000 / etag

:ticket:HTTP etag support middleware for Go

Home Page:https://godoc.org/github.com/go-http-utils/etag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

etag

Build Status Coverage Status

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

import (
  "github.com/go-http-utils/etag"
)
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
  res.Write([]byte("Hello World"))
})

http.ListenAndServe(":8080", etag.Handler(mux, false))

About

:ticket:HTTP etag support middleware for Go

https://godoc.org/github.com/go-http-utils/etag

License:MIT License


Languages

Language:Go 97.0%Language:Makefile 3.0%