• Stars
    star
    348
  • Rank 121,840 (Top 3 %)
  • Language
    Go
  • License
    BSD 2-Clause "Sim...
  • Created over 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

net/http handler filters

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.