sendResponse() — netty Function Reference
Architecture documentation for the sendResponse() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 133bb4fc_5955_8367_566e_0a5a5e4eeeae["sendResponse()"] 679cb2c0_10f0_ca95_5e26_6209ae084a9f["HelloWorldHttp2Handler"] 133bb4fc_5955_8367_566e_0a5a5e4eeeae -->|defined in| 679cb2c0_10f0_ca95_5e26_6209ae084a9f 20537d4b_6e78_aaec_bd7e_1852c0565d54["onDataRead()"] 20537d4b_6e78_aaec_bd7e_1852c0565d54 -->|calls| 133bb4fc_5955_8367_566e_0a5a5e4eeeae e042b45a_8425_005c_5b9c_9970568a3fe5["onHeadersRead()"] e042b45a_8425_005c_5b9c_9970568a3fe5 -->|calls| 133bb4fc_5955_8367_566e_0a5a5e4eeeae style 133bb4fc_5955_8367_566e_0a5a5e4eeeae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java lines 89–96
private void sendResponse(ChannelHandlerContext ctx, int streamId, ByteBuf payload) {
// Send a frame for the response status
Http2Headers headers = new DefaultHttp2Headers().status(OK.codeAsText());
encoder().writeHeaders(ctx, streamId, headers, 0, false, ctx.newPromise());
encoder().writeData(ctx, streamId, payload, 0, true, ctx.newPromise());
// no need to call flush as channelReadComplete(...) will take care of it.
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does sendResponse() do?
sendResponse() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java.
Where is sendResponse() defined?
sendResponse() is defined in example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java at line 89.
What calls sendResponse()?
sendResponse() is called by 2 function(s): onDataRead, onHeadersRead.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free