mirror of
https://github.com/ggicci/httpin.git
synced 2024-12-10 10:00:07 +02:00
12 lines
313 B
Go
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
|