Gin: Non-gin Middleware

Created on 24 Jun 2017  路  2Comments  路  Source: gin-gonic/gin

I am having a difficult time figuring out how I would implement another library's non-gin middlware. The function in question takes an http.Handler input parameter similar to:func Something(handler http.Handler) http.Handler{...}

Thanks!

Most helpful comment

For anyone interested, I ended up using github.com/gwatts/gin-adapter to address this.

All 2 comments

In particular, i'd like to convert a gin.HandlerFunc to an http.Handler for use with 3rd party middleware.

For anyone interested, I ended up using github.com/gwatts/gin-adapter to address this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nxvl picture nxvl  路  3Comments

ghost picture ghost  路  3Comments

oryband picture oryband  路  3Comments

frederikhors picture frederikhors  路  3Comments

sofish picture sofish  路  3Comments