Versions in this module Expand all Collapse all v0 v0.1.1 Jan 5, 2024 v0.1.0 Sep 19, 2023 Changes in this version + const PriorityClientIP + const PriorityHeader + const PriorityHost + const PriorityMethod + const PriorityPath + const PriorityPathPrefix + const PriorityQuery + const PriorityServerIP + var AlwaysFalse = MatchFunc(func(*http.Request) bool { ... }) + var AlwaysTrue = MatchFunc(func(*http.Request) bool { ... }) + var GetClientIP = func(r *http.Request) netip.Addr + var GetHost = func(r *http.Request) string + var GetPath = func(r *http.Request) (path string) + var GetServerIP = func(r *http.Request) netip.Addr + func RemoveParentheses(s string) string + func Sort(ms []Matcher) + type MatchFunc func(r *http.Request) bool + func (f MatchFunc) Match(r *http.Request) bool + type Matcher interface + Match func(*http.Request) bool + Priority func() int + func And(ms ...Matcher) Matcher + func ClientIP(ips ...string) (Matcher, error) + func Header(key, value string) Matcher + func Headerm(headerm map[string]string) Matcher + func Host(hosts ...string) Matcher + func Method(methods ...string) Matcher + func New(prio int, desc string, match MatchFunc) Matcher + func Or(ms ...Matcher) Matcher + func Path(paths ...string) Matcher + func PathPrefix(pathPrefixes ...string) Matcher + func Query(key, value string) Matcher + func Querym(querym map[string]string) Matcher + func ServerIP(ips ...string) (Matcher, error)