1
0
mirror of https://github.com/ggicci/httpin.git synced 2024-12-10 10:00:07 +02:00
httpin/chain.go

12 lines
313 B
Go
Raw Normal View History

2021-04-13 07:33:04 +02:00
package httpin
import (
"net/http"
)
// Middleware is a constructor for making a chain, which acts as a list of
// http.Handler constructors. We recommend using
// https://github.com/justinas/alice to chain your HTTP middleware functions
// and the app handler.
type Middleware func(http.Handler) http.Handler