/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

Primary LanguageGoMIT LicenseMIT

GoDoc Build Status

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