sendError() — netty Function Reference
Architecture documentation for the sendError() function in HttpStaticFileServerHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e8aaebf5_6ec4_adec_aa31_f32cf1d41e60["sendError()"] 02ca82d7_508c_aabe_bb4d_dd1603c38b01["HttpStaticFileServerHandler"] e8aaebf5_6ec4_adec_aa31_f32cf1d41e60 -->|defined in| 02ca82d7_508c_aabe_bb4d_dd1603c38b01 d39f8eb8_b352_59dc_d244_4e113cd078df["channelRead0()"] d39f8eb8_b352_59dc_d244_4e113cd078df -->|calls| e8aaebf5_6ec4_adec_aa31_f32cf1d41e60 aee9bb4c_cfe3_2c43_6afd_034b46bbd060["exceptionCaught()"] aee9bb4c_cfe3_2c43_6afd_034b46bbd060 -->|calls| e8aaebf5_6ec4_adec_aa31_f32cf1d41e60 387357b5_0623_04d6_d7dd_f0074f835df9["sendAndCleanupConnection()"] e8aaebf5_6ec4_adec_aa31_f32cf1d41e60 -->|calls| 387357b5_0623_04d6_d7dd_f0074f835df9 style e8aaebf5_6ec4_adec_aa31_f32cf1d41e60 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java lines 327–333
private void sendError(ChannelHandlerContext ctx, HttpResponseStatus status) {
FullHttpResponse response = new DefaultFullHttpResponse(
HTTP_1_1, status, Unpooled.copiedBuffer("Failure: " + status + "\r\n", CharsetUtil.UTF_8));
response.headers().set(HttpHeaderNames.CONTENT_TYPE, "text/plain; charset=UTF-8");
sendAndCleanupConnection(ctx, response);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does sendError() do?
sendError() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java.
Where is sendError() defined?
sendError() is defined in example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java at line 327.
What does sendError() call?
sendError() calls 1 function(s): sendAndCleanupConnection.
What calls sendError()?
sendError() is called by 2 function(s): channelRead0, exceptionCaught.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free