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

Method encode

api/src/main/java/io/grpc/QueryParams.java:281–288  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

279 }
280
281 private static String encode(String s) {
282 try {
283 // TODO: Use URLEncoder.encode(String, Charset) when available
284 return URLEncoder.encode(s, UTF_8);
285 } catch (UnsupportedEncodingException impossible) {
286 throw new AssertionError("UTF-8 is not supported", impossible);
287 }
288 }
289}

Callers 15

base64EncodeMethod · 0.45
toHttp2HeadersMethod · 0.45
createMetadataProtoMethod · 0.45
MetadataExchangerMethod · 0.45
toAsciiStringMethod · 0.45
forKeyValueMethod · 0.45
forLoneKeyMethod · 0.45
toStringMethod · 0.45
percentEncodeMethod · 0.45
toHexStringMethod · 0.45

Calls

no outgoing calls