testTruncatedHeaderValue() — netty Function Reference
Architecture documentation for the testTruncatedHeaderValue() function in SpdyHeaderBlockRawDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0495e027_4f16_95de_070e_c83d15e73243["testTruncatedHeaderValue()"] 9d24b120_0e9f_df39_05af_436eac53cd12["SpdyHeaderBlockRawDecoderTest"] 0495e027_4f16_95de_070e_c83d15e73243 -->|defined in| 9d24b120_0e9f_df39_05af_436eac53cd12 style 0495e027_4f16_95de_070e_c83d15e73243 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java lines 497–515
@Test
public void testTruncatedHeaderValue() throws Exception {
ByteBuf headerBlock = Unpooled.buffer(maxHeaderSize + 13);
headerBlock.writeInt(1);
headerBlock.writeInt(4);
headerBlock.writeBytes(nameBytes);
headerBlock.writeInt(13);
for (int i = 0; i < maxHeaderSize - 3; i++) {
headerBlock.writeByte('a');
}
decoder.decode(ByteBufAllocator.DEFAULT, headerBlock, frame);
decoder.endHeaderBlock(frame);
assertFalse(headerBlock.isReadable());
assertTrue(frame.isTruncated());
assertFalse(frame.isInvalid());
assertEquals(0, frame.headers().names().size());
headerBlock.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testTruncatedHeaderValue() do?
testTruncatedHeaderValue() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java.
Where is testTruncatedHeaderValue() defined?
testTruncatedHeaderValue() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyHeaderBlockRawDecoderTest.java at line 497.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free