Documentation ¶
Index ¶
- Variables
- func GetRequestID(r *http.Request) string
- func MaxRequestSize(next http.Handler, maxReqSize uint64) http.Handler
- func NewLogMiddleware(next http.Handler, log *slog.Logger) http.Handler
- func Redirect(_ http.Handler, port int) http.Handler
- func TLSAddr(host string, forcePort bool, sslPort int) string
- type Middleware
- type Middlewares
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHijackerNotSupported = errors.New("http.Hijacker interface is not supported")
Functions ¶
func GetRequestID ¶
GetRequestID returns the request identifier
Types ¶
type Middleware ¶
type Middlewares ¶
type Middlewares interface {
HTTPMiddlewares() []interface{}
}
Click to show internal directories.
Click to hide internal directories.