streadway / handy

net/http handler filters

Home Page:http://godoc.org/github.com/streadway/handy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handy Handlers

Collection of useful HTTP handlers that form a handler stack of filters. Many are opinionated for a specific purpose.

GoDoc

API

The signature for a handler wrapper ends with an http.Handler interface and returns a http.Handler interface. For example:

func Log(w io.Writer, http.Handler) http.Handler

func CORS(methods, origins []string, http.Handler) http.Handler

Contributing

Fork the repo and add your fix or handler with tests. Make a pull request.

About

net/http handler filters

http://godoc.org/github.com/streadway/handy

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%