public static interface Metadata.AsciiMarshaller<T>
0x20
, but must not be at the beginning or at the end of the value. Leading
or trailing whitespace may not be preserved.
0x21-0x7E
).
Note this has to be the subset of valid characters in field-content
from RFC 7230
Section 3.2.
Modifier and Type | Method and Description |
---|---|
T |
parseAsciiString(String serialized)
Parse a serialized metadata value from an ASCII string.
|
String |
toAsciiString(T value)
Serialize a metadata value to a ASCII string that contains only the characters listed in the
class comment of
Metadata.AsciiMarshaller . |
String toAsciiString(T value)
Metadata.AsciiMarshaller
. Otherwise the output may be considered invalid and
discarded by the transport, or the call may fail.value
- to serialize