encodeHeaders() — netty Function Reference
Architecture documentation for the encodeHeaders() function in DefaultHttp2HeadersEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c895ec54_d8d8_81ce_5cf7_39cde7ba5751["encodeHeaders()"] d5205a77_8104_2f6b_7fe6_567c601fedb6["DefaultHttp2HeadersEncoder"] c895ec54_d8d8_81ce_5cf7_39cde7ba5751 -->|defined in| d5205a77_8104_2f6b_7fe6_567c601fedb6 style c895ec54_d8d8_81ce_5cf7_39cde7ba5751 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersEncoder.java lines 66–82
@Override
public void encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) throws Http2Exception {
try {
// If there was a change in the table size, serialize the output from the hpackEncoder
// resulting from that change.
if (tableSizeChangeOutput != null && tableSizeChangeOutput.isReadable()) {
buffer.writeBytes(tableSizeChangeOutput);
tableSizeChangeOutput.clear();
}
hpackEncoder.encodeHeaders(streamId, buffer, headers, sensitivityDetector);
} catch (Http2Exception e) {
throw e;
} catch (Throwable t) {
throw connectionError(COMPRESSION_ERROR, t, "Failed encoding headers block: %s", t.getMessage());
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does encodeHeaders() do?
encodeHeaders() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersEncoder.java.
Where is encodeHeaders() defined?
encodeHeaders() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersEncoder.java at line 66.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free