Home / Function/ testPseudoHeaderEmptyValidationEnabled() — netty Function Reference

testPseudoHeaderEmptyValidationEnabled() — netty Function Reference

Architecture documentation for the testPseudoHeaderEmptyValidationEnabled() function in HpackDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3b5701be_1edc_7394_e29b_4ec67e300502["testPseudoHeaderEmptyValidationEnabled()"]
  499468ca_3853_024b_2b80_17090ef6cd43["HpackDecoderTest"]
  3b5701be_1edc_7394_e29b_4ec67e300502 -->|defined in| 499468ca_3853_024b_2b80_17090ef6cd43
  47ac4151_0b50_9884_0d18_472d1c51065d["decode()"]
  3b5701be_1edc_7394_e29b_4ec67e300502 -->|calls| 47ac4151_0b50_9884_0d18_472d1c51065d
  style 3b5701be_1edc_7394_e29b_4ec67e300502 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java lines 867–891

    @ParameterizedTest
    @CsvSource(value = {":method,''", ":scheme,''", ":authority,''", ":path,''"})
    public void testPseudoHeaderEmptyValidationEnabled(String name, String value) throws Exception {
        final ByteBuf in = Unpooled.buffer(200);
        try {
            HpackEncoder hpackEncoder = new HpackEncoder(true);

            Http2Headers toEncode = new InOrderHttp2Headers();
            toEncode.add(name, value);
            hpackEncoder.encodeHeaders(1, in, toEncode, NEVER_SENSITIVE);

            final Http2Headers decoded = new DefaultHttp2Headers();

            Http2Exception.StreamException e = assertThrows(Http2Exception.StreamException.class, new Executable() {
                @Override
                public void execute() throws Throwable {
                    hpackDecoder.decode(3, in, decoded, true);
                }
            });
            assertEquals(3, e.streamId());
            assertEquals(PROTOCOL_ERROR, e.error());
        } finally {
            in.release();
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testPseudoHeaderEmptyValidationEnabled() do?
testPseudoHeaderEmptyValidationEnabled() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java.
Where is testPseudoHeaderEmptyValidationEnabled() defined?
testPseudoHeaderEmptyValidationEnabled() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java at line 867.
What does testPseudoHeaderEmptyValidationEnabled() call?
testPseudoHeaderEmptyValidationEnabled() calls 1 function(s): decode.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free