Metadata.AsciiMarshaller<T>, Metadata.BinaryMarshaller<T>, Metadata.Headers, Metadata.Key<T>, Metadata.TrailersASCII_STRING_MARSHALLER, BINARY_HEADER_SUFFIX, INTEGER_MARSHALLER| Constructor and Description |
|---|
Headers()
Called by the application layer to construct headers prior to passing them to the
transport for serialization.
|
Headers(byte[]... headers)
Called by the transport layer to create headers from their binary serialized values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthority()
The serving authority for the operation.
|
String |
getPath()
The path for the operation.
|
void |
merge(Metadata other)
Perform a simple merge of two sets of metadata.
|
void |
merge(Metadata other,
Set<Metadata.Key<?>> keys)
Merge values for the given set of keys into this set of metadata.
|
void |
setAuthority(String authority)
Override the HTTP/2 authority the channel claims to be connecting to.
|
void |
setPath(String path) |
String |
toString() |
containsKey, get, getAll, isSerializable, put, remove, removeAll, serializepublic Headers(byte[]... headers)
public Headers()
public String getPath()
public void setPath(String path)
public String getAuthority()
public void setAuthority(String authority)
public void merge(Metadata other)
MetadataNote that we can't merge non-serializable metadata into serializable.
public void merge(Metadata other, Set<Metadata.Key<?>> keys)
Metadata