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

Method setRawPath

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

Specifies the new URI's path component as a string of zero or more '/' delimited segments. Path segments can consist of any string of codepoints but the caller must first percent- encode anything other than RFC 3986's "pchar" character class using UTF-8. If a URI contains an authority compon

(String path)

Source from the content-addressed store, hash-verified

778 * @return this, for fluent building
779 */
780 @CanIgnoreReturnValue
781 public Builder setRawPath(String path) {
782 checkArgument(path != null, "Path can be empty but not null");
783 parseAssumedUtf8PathIntoSegments(path, null);
784 this.path = path;
785 return this;
786 }
787
788 /**
789 * Specifies the query component of the new URI, possibly percent-encoded, exactly as it will

Callers 1

createMethod · 0.95

Tested by

no test coverage detected