MCPcopy Index your code
hub / github.com/grpc/grpc-java / of

Method of

api/src/main/java/io/grpc/Metadata.java:682–684  ·  view source on GitHub ↗

Creates a key for a binary header. @param name Must contain only the valid key characters as defined in the class comment. Must end with #BINARY_HEADER_SUFFIX.

(String name, BinaryMarshaller<T> marshaller)

Source from the content-addressed store, hash-verified

680 * end with {@link #BINARY_HEADER_SUFFIX}.
681 */
682 public static <T> Key<T> of(String name, BinaryMarshaller<T> marshaller) {
683 return new BinaryKey<>(name, marshaller);
684 }
685
686 /**
687 * Creates a key for a binary header, serializing to input streams.

Calls

no outgoing calls