Home / Function/ serverShouldNeverSend431HeaderSizeErrorWhenEncoding() — netty Function Reference

serverShouldNeverSend431HeaderSizeErrorWhenEncoding() — netty Function Reference

Architecture documentation for the serverShouldNeverSend431HeaderSizeErrorWhenEncoding() function in Http2ConnectionHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e5b1bcde_a323_87ef_4f9d_3377ae51dd9b["serverShouldNeverSend431HeaderSizeErrorWhenEncoding()"]
  e8b32c7d_fa9d_422b_0744_82047ac00ea5["Http2ConnectionHandlerTest"]
  e5b1bcde_a323_87ef_4f9d_3377ae51dd9b -->|defined in| e8b32c7d_fa9d_422b_0744_82047ac00ea5
  style e5b1bcde_a323_87ef_4f9d_3377ae51dd9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java lines 454–473

    @Test
    public void serverShouldNeverSend431HeaderSizeErrorWhenEncoding() throws Exception {
        int padding = 0;
        handler = newHandler();
        Http2Exception e = new Http2Exception.HeaderListSizeException(STREAM_ID, PROTOCOL_ERROR,
            "Header size exceeded max allowed size 8196", false);

        when(stream.id()).thenReturn(STREAM_ID);
        when(connection.isServer()).thenReturn(true);
        when(stream.isHeadersSent()).thenReturn(false);
        when(remote.lastStreamCreated()).thenReturn(STREAM_ID);
        when(encoder.writeRstStream(eq(ctx), eq(STREAM_ID),
            eq(PROTOCOL_ERROR.code()), eq(promise))).thenReturn(future);

        handler.exceptionCaught(ctx, e);

        verify(encoder, never()).writeHeaders(eq(ctx), eq(STREAM_ID),
            any(Http2Headers.class), eq(padding), eq(true), eq(promise));
        verify(encoder).writeRstStream(ctx, STREAM_ID, PROTOCOL_ERROR.code(), promise);
    }

Domain

Subdomains

Frequently Asked Questions

What does serverShouldNeverSend431HeaderSizeErrorWhenEncoding() do?
serverShouldNeverSend431HeaderSizeErrorWhenEncoding() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java.
Where is serverShouldNeverSend431HeaderSizeErrorWhenEncoding() defined?
serverShouldNeverSend431HeaderSizeErrorWhenEncoding() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionHandlerTest.java at line 454.

Analyze Your Own Codebase

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

Try Supermodel Free