Home / Function/ headersWriteShouldOpenStreamForPush() — netty Function Reference

headersWriteShouldOpenStreamForPush() — netty Function Reference

Architecture documentation for the headersWriteShouldOpenStreamForPush() function in DefaultHttp2ConnectionEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c2155260_3f62_42df_f1ef_5555ef1b5c87["headersWriteShouldOpenStreamForPush()"]
  aef19477_9a1f_48c4_824a_17c7f3ecbb10["DefaultHttp2ConnectionEncoderTest"]
  c2155260_3f62_42df_f1ef_5555ef1b5c87 -->|defined in| aef19477_9a1f_48c4_824a_17c7f3ecbb10
  28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4["writeAllFlowControlledFrames()"]
  c2155260_3f62_42df_f1ef_5555ef1b5c87 -->|calls| 28f0aa39_bbbc_f7c5_14c5_1a7106a5f5a4
  style c2155260_3f62_42df_f1ef_5555ef1b5c87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 402–413

    @Test
    public void headersWriteShouldOpenStreamForPush() throws Exception {
        writeAllFlowControlledFrames();
        Http2Stream parent = createStream(STREAM_ID, false);
        reservePushStream(PUSH_STREAM_ID, parent);

        ChannelPromise promise = newPromise();
        encoder.writeHeaders(ctx, PUSH_STREAM_ID, EmptyHttp2Headers.INSTANCE, 0, false, promise);
        assertEquals(HALF_CLOSED_REMOTE, stream(PUSH_STREAM_ID).state());
        verify(writer).writeHeaders(eq(ctx), eq(PUSH_STREAM_ID), eq(EmptyHttp2Headers.INSTANCE),
                eq(0), eq(false), eq(promise));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free