testPseudoHeadersWithClearDoesNotLeak() — netty Function Reference
Architecture documentation for the testPseudoHeadersWithClearDoesNotLeak() function in DefaultHttp2HeadersTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a44ccbe9_a2fe_01dc_1ffd_77791a6cb32e["testPseudoHeadersWithClearDoesNotLeak()"] dee91314_9fa2_2772_1f20_e4b8f18eea54["DefaultHttp2HeadersTest"] a44ccbe9_a2fe_01dc_1ffd_77791a6cb32e -->|defined in| dee91314_9fa2_2772_1f20_e4b8f18eea54 4876a82b_149a_46dc_37e1_1fdab68cb647["verifyPseudoHeadersFirst()"] a44ccbe9_a2fe_01dc_1ffd_77791a6cb32e -->|calls| 4876a82b_149a_46dc_37e1_1fdab68cb647 style a44ccbe9_a2fe_01dc_1ffd_77791a6cb32e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2HeadersTest.java lines 97–121
@Test
public void testPseudoHeadersWithClearDoesNotLeak() {
Http2Headers headers = newHeaders();
assertFalse(headers.isEmpty());
headers.clear();
assertTrue(headers.isEmpty());
// Combine 2 headers together, make sure pseudo headers stay up front.
headers.add("name1", "value1").scheme("nothing");
verifyPseudoHeadersFirst(headers);
Http2Headers other = new DefaultHttp2Headers().add("name2", "value2").authority("foo");
verifyPseudoHeadersFirst(other);
headers.add(other);
verifyPseudoHeadersFirst(headers);
// Make sure the headers are what we expect them to be, and no leaking behind the scenes.
assertEquals(4, headers.size());
assertEquals("value1", headers.get("name1"));
assertEquals("value2", headers.get("name2"));
assertEquals("nothing", headers.scheme());
assertEquals("foo", headers.authority());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testPseudoHeadersWithClearDoesNotLeak() do?
testPseudoHeadersWithClearDoesNotLeak() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2HeadersTest.java.
Where is testPseudoHeadersWithClearDoesNotLeak() defined?
testPseudoHeadersWithClearDoesNotLeak() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2HeadersTest.java at line 97.
What does testPseudoHeadersWithClearDoesNotLeak() call?
testPseudoHeadersWithClearDoesNotLeak() calls 1 function(s): verifyPseudoHeadersFirst.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free