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

Method OverrideAuthority

resolver/resolver.go:341–341  ·  view source on GitHub ↗

OverrideAuthority returns the authority to use for a ClientConn with the given target. The implementation must generate it without blocking, typically in line, and must keep it unchanged. The returned string must be a valid ":authority" header value, i.e. be encoded according to [RFC3986](https://d

(Target)

Source from the content-addressed store, hash-verified

339 // [RFC3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2) as
340 // necessary.
341 OverrideAuthority(Target) string
342}
343
344// ValidateEndpoints validates endpoints from a petiole policy's perspective.

Callers 1

initAuthorityMethod · 0.65

Implementers 1

builderinternal/resolver/unix/unix.go

Calls

no outgoing calls

Tested by

no test coverage detected