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

TypeAlias MatchProtocol

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

MatchProtocol matches requests by protocol. Recognized values are "http", "https", and "grpc" for broad protocol matches, or specific HTTP versions can be specified like so: "http/1", "http/1.1", "http/2", "http/3", or minimum versions: "http/2+", etc.

Source from the content-addressed store, hash-verified

176 // HTTP versions can be specified like so: "http/1", "http/1.1",
177 // "http/2", "http/3", or minimum versions: "http/2+", etc.
178 MatchProtocol string
179
180 // MatchTLS matches HTTP requests based on the underlying
181 // TLS connection state. If this matcher is specified but

Callers 3

automaticHTTPSPhase1Method · 0.85
UnmarshalCaddyfileMethod · 0.85
CELLibraryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected