MCPcopy
hub / github.com/caddyserver/caddy / MatchHost

TypeAlias MatchHost

modules/caddyhttp/matchers.go:65–65  ·  view source on GitHub ↗

MatchHost matches requests by the Host value (case-insensitive). When used in a top-level HTTP route, [qualifying domain names](/docs/automatic-https#hostname-requirements) may trigger [automatic HTTPS](/docs/automatic-https), which automatically provisions and renews certificates for you. Before d

Source from the content-addressed store, hash-verified

63 //
64 // Duplicate entries will return an error.
65 MatchHost []string
66
67 // MatchPath case-insensitively matches requests by the URI's path. Path
68 // matching is exact, not prefix-based, giving you more control and clarity

Callers 2

automaticHTTPSPhase1Method · 0.85
CELLibraryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected