mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-05 18:44:58 +03:00
12 lines
431 B
Go
12 lines
431 B
Go
|
// Package middleware includes a variety of middleware for
|
||
|
// the servers to use, according to their configuration.
|
||
|
package middleware
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
// Middleware is a type of function that generates a new
|
||
|
// layer of middleware. It is imperative that the HandlerFunc
|
||
|
// being passed in is executed by the middleware, otherwise
|
||
|
// part of the stack will not be called.
|
||
|
type Middleware func(http.HandlerFunc) http.HandlerFunc
|