1
0
mirror of https://github.com/ggicci/httpin.git synced 2024-12-02 09:01:33 +02:00
httpin/chain.go
2021-04-13 13:33:04 +08:00

12 lines
313 B
Go

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