GitHunt
SC

scr-oath/gin-wraphh

A function for wrapping middlewares that take and return http.Handler objects for the gin framework

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

Languages

Go100.0%

Contributors

MIT License
Created February 5, 2025
Updated February 5, 2025