Home / Function/ trailersDoNotEndStreamWithDataThrows() — netty Function Reference

trailersDoNotEndStreamWithDataThrows() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java lines 431–448

    @Test
    public void trailersDoNotEndStreamWithDataThrows() {
        writeAllFlowControlledFrames();
        final int streamId = 6;
        ChannelPromise promise = newPromise();
        encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, false, promise);

        Http2Stream stream = connection.stream(streamId);
        when(remoteFlow.hasFlowControlled(eq(stream))).thenReturn(true);

        ChannelPromise promise2 = newPromise();
        ChannelFuture future = encoder.writeHeaders(ctx, streamId, EmptyHttp2Headers.INSTANCE, 0, false, promise2);
        assertTrue(future.isDone());
        assertFalse(future.isSuccess());

        verify(writer, times(1)).writeHeaders(eq(ctx), eq(streamId), eq(EmptyHttp2Headers.INSTANCE),
                eq(0), eq(false), eq(promise));
    }

Domain

Subdomains

Frequently Asked Questions

What does trailersDoNotEndStreamWithDataThrows() do?
trailersDoNotEndStreamWithDataThrows() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java.
Where is trailersDoNotEndStreamWithDataThrows() defined?
trailersDoNotEndStreamWithDataThrows() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoderTest.java at line 431.
What does trailersDoNotEndStreamWithDataThrows() call?
trailersDoNotEndStreamWithDataThrows() 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