Versions in this module Expand all Collapse all v0 v0.2.4 Dec 30, 2023 Changes in this version + const ModuleName + func ParseUrlWithContext(urlStr string, ctx *MatchContext) (*url.URL, error) + type MatchContext struct + OriginalUrl *url.URL + Scheme string + type MatchResult struct + Error error + IsHostRedirect bool + IsMatched bool + IsNoRedirect bool + Match *urlpath.Match + ResolvedTo *url.URL + Source redirects.Rule + func MatchUrlToRule(rule redirects.Rule, reqUrl *url.URL, ctx *MatchContext) MatchResult + type Middleware struct + Logger *zap.Logger + Redirects []redirects.Rule + func (Middleware) CaddyModule() caddy.ModuleInfo + func (m *Middleware) Provision(ctx caddy.Context) error + func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error