writeHeadersWithPadding() — netty Function Reference
Architecture documentation for the writeHeadersWithPadding() function in DefaultHttp2FrameWriterTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4c9ad236_c04a_4e5d_a035_be7fce79c626["writeHeadersWithPadding()"] 602c48d7_d78b_d8f3_745e_26d2ab6ce0f2["DefaultHttp2FrameWriterTest"] 4c9ad236_c04a_4e5d_a035_be7fce79c626 -->|defined in| 602c48d7_d78b_d8f3_745e_26d2ab6ce0f2 18257f7e_6b98_6a1c_3968_7d340060c175["writeHeaders()"] 4c9ad236_c04a_4e5d_a035_be7fce79c626 -->|calls| 18257f7e_6b98_6a1c_3968_7d340060c175 a6ef6861_01af_480a_ff2a_92aba33e00e0["headerPayload()"] 4c9ad236_c04a_4e5d_a035_be7fce79c626 -->|calls| a6ef6861_01af_480a_ff2a_92aba33e00e0 style 4c9ad236_c04a_4e5d_a035_be7fce79c626 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java lines 125–142
@Test
public void writeHeadersWithPadding() throws Exception {
int streamId = 1;
Http2Headers headers = new DefaultHttp2Headers()
.method("GET").path("/").authority("foo.com").scheme("https");
frameWriter.writeHeaders(ctx, streamId, headers, 5, true, promise);
byte[] expectedPayload = headerPayload(streamId, headers, (byte) 4);
byte[] expectedFrameBytes = {
(byte) 0x00, (byte) 0x00, (byte) 0x0f, // payload length = 16
(byte) 0x01, // payload type = 1
(byte) 0x0d, // flags = (0x01 | 0x04 | 0x08)
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01 // stream id = 1
};
expectedOutbound = Unpooled.copiedBuffer(expectedFrameBytes, expectedPayload);
assertEquals(expectedOutbound, outbound);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does writeHeadersWithPadding() do?
writeHeadersWithPadding() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java.
Where is writeHeadersWithPadding() defined?
writeHeadersWithPadding() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java at line 125.
What does writeHeadersWithPadding() call?
writeHeadersWithPadding() calls 2 function(s): headerPayload, writeHeaders.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free