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

Method setUserInfo

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

Set the "user info" component of the new URI, e.g. "username:password", not including the trailing '@' character. User info can contain any string of codepoints. Codepoints that can't be encoded literally will be percent-encoded for you as UTF-8. This field is optional. @param userInfo the

(@Nullable String userInfo)

Source from the content-addressed store, hash-verified

877 * @return this, for fluent building
878 */
879 @CanIgnoreReturnValue
880 public Builder setUserInfo(@Nullable String userInfo) {
881 this.userInfo = percentEncode(userInfo, userInfoChars);
882 return this;
883 }
884
885 @CanIgnoreReturnValue
886 Builder setRawUserInfo(String userInfo) {

Calls 1

percentEncodeMethod · 0.80