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

Function CallAuthority

rpc_util.go:436–438  ·  view source on GitHub ↗

CallAuthority returns a CallOption that sets the HTTP/2 :authority header of an RPC to the specified value. When using CallAuthority, the credentials in use must implement the AuthorityValidator interface. # Experimental Notice: This API is EXPERIMENTAL and may be changed or removed in a later rel

(authority string)

Source from the content-addressed store, hash-verified

434// Notice: This API is EXPERIMENTAL and may be changed or removed in a later
435// release.
436func CallAuthority(authority string) CallOption {
437 return AuthorityOverrideCallOption{Authority: authority}
438}
439
440// AuthorityOverrideCallOption is a CallOption that indicates the HTTP/2
441// :authority header value to use for the call.

Calls

no outgoing calls