MCPcopy Create free account
hub / github.com/grpc/grpc-java / getAuthority

Method getAuthority

api/src/main/java/io/grpc/CallOptions.java:274–278  ·  view source on GitHub ↗

Override the HTTP/2 authority the channel claims to be connecting to. This is not generally safe. Overriding allows advanced users to re-use a single Channel for multiple services, even if those services are hosted on different domain names. That assumes the server is virtually hosting mult

()

Source from the content-addressed store, hash-verified

272 * TLS certificate.</em>
273 */
274 @Nullable
275 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1767")
276 public String getAuthority() {
277 return authority;
278 }
279
280 /**
281 * Returns the call credentials.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected