MCPcopy
hub / github.com/grpc/grpc-go / HeaderSuffixMatcher

Struct HeaderSuffixMatcher

internal/xds/matcher/matcher_header.go:189–193  ·  view source on GitHub ↗

HeaderSuffixMatcher matches on whether the suffix of the header value matches the suffix passed into this struct.

Source from the content-addressed store, hash-verified

187// HeaderSuffixMatcher matches on whether the suffix of the header value matches
188// the suffix passed into this struct.
189type HeaderSuffixMatcher struct {
190 key string
191 suffix string
192 invert bool
193}
194
195// NewHeaderSuffixMatcher returns a new HeaderSuffixMatcher.
196func NewHeaderSuffixMatcher(key string, suffix string, invert bool) *HeaderSuffixMatcher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected