Home / Function/ decodingConnectionRelatedHeadersMustFailValidation() — netty Function Reference

decodingConnectionRelatedHeadersMustFailValidation() — netty Function Reference

Architecture documentation for the decodingConnectionRelatedHeadersMustFailValidation() function in DefaultHttp2HeadersDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0428a437_38df_61c4_8753_903ca4816b4c["decodingConnectionRelatedHeadersMustFailValidation()"]
  bddf27d1_0dcd_a270_e076_3c8aa8b9b31f["DefaultHttp2HeadersDecoderTest"]
  0428a437_38df_61c4_8753_903ca4816b4c -->|defined in| bddf27d1_0dcd_a270_e076_3c8aa8b9b31f
  1762df4d_7e26_6e5a_64bd_9906dfd81eb6["verifyValidationFails()"]
  0428a437_38df_61c4_8753_903ca4816b4c -->|calls| 1762df4d_7e26_6e5a_64bd_9906dfd81eb6
  style 0428a437_38df_61c4_8753_903ca4816b4c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2HeadersDecoderTest.java lines 157–177

    @Test
    public void decodingConnectionRelatedHeadersMustFailValidation() throws Exception {
        final DefaultHttp2HeadersDecoder decoder = new DefaultHttp2HeadersDecoder(true, true);
        // Standard connection related headers
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("keep-alive"), b("timeout=5")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"),
                b("connection"), b("keep-alive"), b("keep-alive"), b("timeout=5")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("transfer-encoding"), b("chunked")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"),
                b("connection"), b("transfer-encoding"), b("transfer-encoding"), b("chunked")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("upgrade"), b("foo/2")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"),
                b("connection"), b("upgrade"), b("upgrade"), b("foo/2")));
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("connection"), b("close")));

        // Non-standard connection related headers:
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("proxy-connection"), b("keep-alive")));

        // Only "trailers" is allowed for the TE header:
        verifyValidationFails(decoder, encode(b(":method"), b("GET"), b("te"), b("compress")));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free