headersWithEndStreamShouldNotSendError() — netty Function Reference
Architecture documentation for the headersWithEndStreamShouldNotSendError() function in Http2ConnectionRoundtripTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bcc1b7fc_dfe6_0e61_18a5_ee61d86850af["headersWithEndStreamShouldNotSendError()"] 0d6189e8_c033_39ff_d087_9019351440fe["Http2ConnectionRoundtripTest"] bcc1b7fc_dfe6_0e61_18a5_ee61d86850af -->|defined in| 0d6189e8_c033_39ff_d087_9019351440fe 1dd685b8_9b56_5b35_70ca_7f2bf9016254["bootstrapEnv()"] bcc1b7fc_dfe6_0e61_18a5_ee61d86850af -->|calls| 1dd685b8_9b56_5b35_70ca_7f2bf9016254 f8a98f5a_5b4f_5e46_24a0_b03b1f68c64a["setClientGracefulShutdownTime()"] bcc1b7fc_dfe6_0e61_18a5_ee61d86850af -->|calls| f8a98f5a_5b4f_5e46_24a0_b03b1f68c64a style bcc1b7fc_dfe6_0e61_18a5_ee61d86850af fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java lines 200–230
@Test
public void headersWithEndStreamShouldNotSendError() throws Exception {
bootstrapEnv(1, 1, 2, 1);
// Create a single stream by sending a HEADERS frame to the server.
final short weight = 16;
final Http2Headers headers = dummyHeaders();
runInChannel(clientChannel, new Http2Runnable() {
@Override
public void run() throws Http2Exception {
http2Client.encoder().writeHeaders(ctx(), 3, headers, 0, weight, false, 0, true,
newPromise());
http2Client.flush(ctx());
}
});
assertTrue(requestLatch.await(DEFAULT_AWAIT_TIMEOUT_SECONDS, SECONDS));
verify(serverListener).onHeadersRead(any(ChannelHandlerContext.class), eq(3), eq(headers),
eq(0), eq(weight), eq(false), eq(0), eq(true));
// Wait for some time to see if a go_away or reset frame will be received.
Thread.sleep(1000);
// Verify that no errors have been received.
verify(serverListener, never()).onGoAwayRead(any(ChannelHandlerContext.class), anyInt(),
anyLong(), any(ByteBuf.class));
verify(serverListener, never()).onRstStreamRead(any(ChannelHandlerContext.class), anyInt(),
anyLong());
// The server will not respond, and so don't wait for graceful shutdown
setClientGracefulShutdownTime(0);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does headersWithEndStreamShouldNotSendError() do?
headersWithEndStreamShouldNotSendError() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java.
Where is headersWithEndStreamShouldNotSendError() defined?
headersWithEndStreamShouldNotSendError() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java at line 200.
What does headersWithEndStreamShouldNotSendError() call?
headersWithEndStreamShouldNotSendError() calls 2 function(s): bootstrapEnv, setClientGracefulShutdownTime.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free