Home / Function/ testClientHeadRequestWithContentLength() — netty Function Reference

testClientHeadRequestWithContentLength() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7223bca2_143c_a390_326c_954efdb9c790["testClientHeadRequestWithContentLength()"]
  c95952ff_8157_1798_825c_bd4f00047c5a["Http3RequestStreamValidationHandlerTest"]
  7223bca2_143c_a390_326c_954efdb9c790 -->|defined in| c95952ff_8157_1798_825c_bd4f00047c5a
  style 7223bca2_143c_a390_326c_954efdb9c790 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java lines 208–225

    @ParameterizedTest(name = "{index}: server = {0}")
    @MethodSource("data")
    public void testClientHeadRequestWithContentLength(boolean server) throws Exception {
        setUp(server);
        EmbeddedQuicStreamChannel channel = newClientStream(() -> false);

        Http3HeadersFrame headersFrame = new DefaultHttp3HeadersFrame();
        headersFrame.headers().method(HttpMethod.HEAD.asciiName());
        assertTrue(channel.writeOutbound(headersFrame));

        Http3HeadersFrame responseHeadersFrame = new DefaultHttp3HeadersFrame();
        responseHeadersFrame.headers().setLong(HttpHeaderNames.CONTENT_LENGTH, 10);

        assertTrue(channel.writeInbound(responseHeadersFrame));
        channel.pipeline().fireUserEventTriggered(ChannelInputShutdownReadComplete.INSTANCE);

        assertTrue(channel.finishAndReleaseAll());
    }

Domain

Subdomains

Frequently Asked Questions

What does testClientHeadRequestWithContentLength() do?
testClientHeadRequestWithContentLength() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java.
Where is testClientHeadRequestWithContentLength() defined?
testClientHeadRequestWithContentLength() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3RequestStreamValidationHandlerTest.java at line 208.

Analyze Your Own Codebase

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

Try Supermodel Free