Home / Function/ testDecodeResponseHeadersContentAlwaysEmpty() — netty Function Reference

testDecodeResponseHeadersContentAlwaysEmpty() — netty Function Reference

Architecture documentation for the testDecodeResponseHeadersContentAlwaysEmpty() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  63ad79ff_bb3b_e9b5_2e60_1d405cc97599["testDecodeResponseHeadersContentAlwaysEmpty()"]
  f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"]
  63ad79ff_bb3b_e9b5_2e60_1d405cc97599 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871
  style 63ad79ff_bb3b_e9b5_2e60_1d405cc97599 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 782–800

    @ParameterizedTest()
    @ValueSource(strings = {"204", "304"})
    public void testDecodeResponseHeadersContentAlwaysEmpty(String statusCode) {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(false));
        Http2Headers headers = new DefaultHttp2Headers();
        headers.scheme(HttpScheme.HTTP.name());
        headers.status(statusCode);

        assertTrue(ch.writeInbound(new DefaultHttp2HeadersFrame(headers)));

        HttpResponse request = ch.readInbound();
        assertEquals(statusCode, request.status().codeAsText().toString());
        assertEquals(HttpVersion.HTTP_1_1, request.protocolVersion());
        assertThat(request).isNotInstanceOf(FullHttpResponse.class);
        assertFalse(HttpUtil.isTransferEncodingChunked(request));

        assertNull(ch.readInbound());
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free