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

Method getHost

api/src/main/java/io/grpc/Uri.java:429–432  ·  view source on GitHub ↗

Returns the percent-decoded "host" component of this URI, or null if not present. This method assumes the host was encoded as UTF-8, as mandated by RFC 3986. Decoding errors are indicated by a '\u005CuFFFD' unicode replacement character in the output. Callers who want to detect and h

()

Source from the content-addressed store, hash-verified

427 * #getRawHost()}, {@link #percentDecode(CharSequence)}, then decode the bytes for themselves.
428 */
429 @Nullable
430 public String getHost() {
431 return percentDecodeAssumedUtf8(host);
432 }
433
434 /**
435 * Returns the host component of this URI in its originally parsed, possibly percent-encoded form.

Calls 1