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)
| 434 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a later |
| 435 | // release. |
| 436 | func 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. |
no outgoing calls