An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![GoDoc](https://godoc.org/github.com/Hawry/middlewares?status.svg)](https://godoc.org/github.com/Hawry/middlewares) [![Build Status](https://travis-ci.org/Hawry/middlewares.svg?branch=master)](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`