Interface Http2HeadersEncoder
- All Known Implementing Classes:
DefaultHttp2HeadersEncoder
public interface Http2HeadersEncoder
Encodes
Http2Headers into HPACK-encoded headers blocks.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceConfiguration related elements for theHttp2HeadersEncoderinterfacestatic interfaceDetermine if a header name/value pair is treated as sensitive. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2HeadersEncoder.SensitivityDetectorAlways returntrueforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).static final Http2HeadersEncoder.SensitivityDetectorAlways returnfalseforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence). -
Method Summary
Modifier and TypeMethodDescriptionGet theHttp2HeadersEncoder.Configurationfor thisHttp2HeadersEncodervoidencodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) Encodes the given headers and writes the output headers block to the given output buffer.
-
Field Details
-
NEVER_SENSITIVE
Always returnfalseforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence). -
ALWAYS_SENSITIVE
Always returntrueforHttp2HeadersEncoder.SensitivityDetector.isSensitive(CharSequence, CharSequence).
-
-
Method Details
-
encodeHeaders
Encodes the given headers and writes the output headers block to the given output buffer.- Parameters:
streamId- the identifier of the stream for which the headers are encoded.headers- the headers to be encoded.buffer- the buffer to receive the encoded headers.- Throws:
Http2Exception
-
configuration
Http2HeadersEncoder.Configuration configuration()Get theHttp2HeadersEncoder.Configurationfor thisHttp2HeadersEncoder
-