sendResponse() — netty Function Reference
Architecture documentation for the sendResponse() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6a02f636_5a1c_6de7_de0e_243781f44505["sendResponse()"] e70e95b3_6153_ac8d_192f_c528a381f039["HelloWorldHttp2Handler"] 6a02f636_5a1c_6de7_de0e_243781f44505 -->|defined in| e70e95b3_6153_ac8d_192f_c528a381f039 2aff3e0d_b9da_dfd8_52d7_204fc2934c59["onDataRead()"] 2aff3e0d_b9da_dfd8_52d7_204fc2934c59 -->|calls| 6a02f636_5a1c_6de7_de0e_243781f44505 35a20a9d_00ea_ecf9_7cf7_973f32dc00d6["onHeadersRead()"] 35a20a9d_00ea_ecf9_7cf7_973f32dc00d6 -->|calls| 6a02f636_5a1c_6de7_de0e_243781f44505 style 6a02f636_5a1c_6de7_de0e_243781f44505 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
testsuite-http2/src/main/java/io/netty/testsuite/http2/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
Called By
Source
Frequently Asked Questions
What does sendResponse() do?
sendResponse() is a function in the netty codebase, defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/HelloWorldHttp2Handler.java.
Where is sendResponse() defined?
sendResponse() is defined in testsuite-http2/src/main/java/io/netty/testsuite/http2/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