https://github.com/hawry/middlewares
Package middlewares aims to create a set of commonly used middleware http.Handlers for use with the default http package. All handlers only takes a http.Handler as an argument, and returns only http.Handler, to more easily be chained with handler chain libraries (.e.g. https://github.com/justinas/alice). Documentation https://godoc.org/github.com/hawry/middlewares
https://github.com/hawry/middlewares
go-middleware go-web golang-http golang-middleware golang-web handler middleware
Last synced: 2 months ago
JSON representation
Package middlewares aims to create a set of commonly used middleware http.Handlers for use with the default http package. All handlers only takes a http.Handler as an argument, and returns only http.Handler, to more easily be chained with handler chain libraries (.e.g. https://github.com/justinas/alice). Documentation https://godoc.org/github.com/hawry/middlewares
- Host: GitHub
- URL: https://github.com/hawry/middlewares
- Owner: hawry
- License: mit
- Created: 2018-01-05T16:43:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T15:32:07.000Z (over 7 years ago)
- Last Synced: 2025-01-31T13:28:58.681Z (4 months ago)
- Topics: go-middleware, go-web, golang-http, golang-middleware, golang-web, handler, middleware
- Language: Go
- Homepage: https://godoc.org/github.com/Hawry/stripper
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/Hawry/middlewares) [](https://travis-ci.org/Hawry/middlewares)
## Install
`go get github.com/hawry/middlewares`
## Usage
Checkout the GoDoc page for the documentation: https://godoc.org/github.com/Hawry/middlewares
## Testing
To see the test coverage and which lines that are being tested, run:
`go test -coverprofile=cp.out && go tool cover -html=cp.out`