wraphh

package module
v0.0.0-...-ea8e492 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 2 Imported by: 0

README

WrapHH GoDoc Build Status

Use this to wrap middleware that accepts and returns http.Handler objects for use in gin.

Created to look like these helper methods in gin:

Examples

See the test code. I have examples wrapping the NYT gzip library and NoSurf, a popular CSRF protection middleware for golang.

About

Based on this gist: https://gist.github.com/turtlemonvh/6cd23ef13e1e290717ef

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapHH

func WrapHH(hh func(h http.Handler) http.Handler) gin.HandlerFunc

Wrap something that accepts an http.Handler, returns an http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL