Home / Function/ channelInputClosed() — netty Function Reference

channelInputClosed() — netty Function Reference

Architecture documentation for the channelInputClosed() function in Http3HelloWorldServerHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8bc498d2_ae25_f9fd_d4ca_3f6d249714e0["channelInputClosed()"]
  50fc3668_3da2_e51f_2cd4_3329f0a5bca7["Http3HelloWorldServerHandler"]
  8bc498d2_ae25_f9fd_d4ca_3f6d249714e0 -->|defined in| 50fc3668_3da2_e51f_2cd4_3329f0a5bca7
  style 8bc498d2_ae25_f9fd_d4ca_3f6d249714e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/Http3HelloWorldServerHandler.java lines 43–56

    @Override
    protected void channelInputClosed(ChannelHandlerContext ctx) {

        String hello = HttpHelloWorldServer.content(ctx);
        ByteBuf data = Unpooled.copiedBuffer(hello, StandardCharsets.UTF_8);

        Http3HeadersFrame headersFrame = new DefaultHttp3HeadersFrame();
        headersFrame.headers().status("200");
        headersFrame.headers().add("server", "netty");
        headersFrame.headers().addInt("content-length", data.readableBytes());
        ctx.write(headersFrame);
        ctx.writeAndFlush(new DefaultHttp3DataFrame(data))
                .addListener(QuicStreamChannel.SHUTDOWN_OUTPUT);
    }

Domain

Subdomains

Frequently Asked Questions

What does channelInputClosed() do?
channelInputClosed() is a function in the netty codebase, defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/Http3HelloWorldServerHandler.java.
Where is channelInputClosed() defined?
channelInputClosed() is defined in testsuite-jpms/src/main/java/io/netty/testsuite_jpms/main/Http3HelloWorldServerHandler.java at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free