Home / Function/ testInformationalResponse() — netty Function Reference

testInformationalResponse() — netty Function Reference

Architecture documentation for the testInformationalResponse() function in Http3RequestStreamValidationHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c940041f_6e7e_f640_c71d_6e250dbc717f["testInformationalResponse()"]
  c95952ff_8157_1798_825c_bd4f00047c5a["Http3RequestStreamValidationHandlerTest"]
  c940041f_6e7e_f640_c71d_6e250dbc717f -->|defined in| c95952ff_8157_1798_825c_bd4f00047c5a
  a937adf8_84d6_ae1a_729f_f1b387687478["testInformationalResponseAfterActualResponseServer()"]
  a937adf8_84d6_ae1a_729f_f1b387687478 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  8cb79ee0_34c8_184a_29a8_7cd74079e30c["testInformationalResponseAfterActualResponseClient()"]
  8cb79ee0_34c8_184a_29a8_7cd74079e30c -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  0b83c347_0ded_7b0a_b15e_53fb26c88997["testMultiInformationalResponseServer()"]
  0b83c347_0ded_7b0a_b15e_53fb26c88997 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  b826fa78_f671_7c85_719b_043ab92cdd50["testMultiInformationalResponseClient()"]
  b826fa78_f671_7c85_719b_043ab92cdd50 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  bfdc8024_ed8f_2d0c_4e29_b6fbd2ea0846["testMultiInformationalResponseAfterActualResponseServer()"]
  bfdc8024_ed8f_2d0c_4e29_b6fbd2ea0846 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  a7fe2d42_0370_89f9_149b_57bbe6c85db7["testMultiInformationalResponseAfterActualResponseClient()"]
  a7fe2d42_0370_89f9_149b_57bbe6c85db7 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  e9fe193c_6a4e_7d29_b2b1_4686c4d9878e["testInformationalResponseWithDataAndTrailersServer()"]
  e9fe193c_6a4e_7d29_b2b1_4686c4d9878e -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  e683d832_26b1_8ed0_9282_e7aa11558c65["testInformationalResponseWithDataAndTrailersClient()"]
  e683d832_26b1_8ed0_9282_e7aa11558c65 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  f8937e5c_15da_b7e0_2617_6ad0f3f9e711["testInformationalResponseWithDataServer()"]
  f8937e5c_15da_b7e0_2617_6ad0f3f9e711 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  10cd2915_cb31_f6a8_eab4_e213bd5642b1["testInformationalResponseWithDataClient()"]
  10cd2915_cb31_f6a8_eab4_e213bd5642b1 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  d0170371_d6c1_f10a_e76b_45362caa19ea["testInformationalResponsePostDataServer()"]
  d0170371_d6c1_f10a_e76b_45362caa19ea -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  2bf9a915_b0b4_c1e5_170d_87473dd614e7["testInformationalResponsePostDataClient()"]
  2bf9a915_b0b4_c1e5_170d_87473dd614e7 -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  0bb9dc25_8888_2e9a_3124_02fbfb7510db["testInformationalResponsePostTrailersServer()"]
  0bb9dc25_8888_2e9a_3124_02fbfb7510db -->|calls| c940041f_6e7e_f640_c71d_6e250dbc717f
  style c940041f_6e7e_f640_c71d_6e250dbc717f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java lines 469–504

    private void testInformationalResponse(boolean server, boolean expectFail, Http3Frame... frames) throws Exception {
        EmbeddedQuicStreamChannel channel = server ? newServerStream() :
                newClientStream(() -> false);

        for (int i = 0; i < frames.length; i++) {
            Http3Frame frame = frames[i];
            Http3Frame read = null;
            try {
                if (server) {
                    assertTrue(channel.writeOutbound(frame));
                    if (expectFail && i == frames.length - 1) {
                        fail();
                    } else {
                        read = channel.readOutbound();
                    }
                } else {
                    assertTrue(channel.writeInbound(frame));
                    if (expectFail && i == frames.length - 1) {
                        fail();
                    } else {
                        read = channel.readInbound();
                    }
                }
                assertEquals(frame, read);
            } catch (Exception e) {
                assertException(H3_FRAME_UNEXPECTED, e);
                if (!server) {
                    verifyClose(H3_FRAME_UNEXPECTED, parent);
                }
            } finally {
                release(read);
            }
        }
        assertFalse(parent.finish());
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testInformationalResponse() do?
testInformationalResponse() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java.
Where is testInformationalResponse() defined?
testInformationalResponse() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java at line 469.
What calls testInformationalResponse()?
testInformationalResponse() is called by 14 function(s): testInformationalResponseAfterActualResponseClient, testInformationalResponseAfterActualResponseServer, testInformationalResponsePostDataClient, testInformationalResponsePostDataServer, testInformationalResponsePostTrailersClient, testInformationalResponsePostTrailersServer, testInformationalResponseWithDataAndTrailersClient, testInformationalResponseWithDataAndTrailersServer, and 6 more.

Analyze Your Own Codebase

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

Try Supermodel Free