sendResponse() — netty Function Reference
Architecture documentation for the sendResponse() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b13faf07_e0fe_ada8_4ade_42b8225c23ef["sendResponse()"] fa23b10d_ecd8_5787_14b8_20305e471f36["HelloWorldHttp2Handler"] b13faf07_e0fe_ada8_4ade_42b8225c23ef -->|defined in| fa23b10d_ecd8_5787_14b8_20305e471f36 ea67368a_00e9_4004_9c50_d0759434db20["onDataRead()"] ea67368a_00e9_4004_9c50_d0759434db20 -->|calls| b13faf07_e0fe_ada8_4ade_42b8225c23ef 6ee65ecb_5c8c_6923_e782_092b8dba7364["onHeadersRead()"] 6ee65ecb_5c8c_6923_e782_092b8dba7364 -->|calls| b13faf07_e0fe_ada8_4ade_42b8225c23ef style b13faf07_e0fe_ada8_4ade_42b8225c23ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/frame/server/HelloWorldHttp2Handler.java lines 102–107
private static void sendResponse(ChannelHandlerContext ctx, Http2FrameStream stream, ByteBuf payload) {
// Send a frame for the response status
Http2Headers headers = new DefaultHttp2Headers().status(OK.codeAsText());
ctx.write(new DefaultHttp2HeadersFrame(headers).stream(stream));
ctx.write(new DefaultHttp2DataFrame(payload, true).stream(stream));
}
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/frame/server/HelloWorldHttp2Handler.java.
Where is sendResponse() defined?
sendResponse() is defined in example/src/main/java/io/netty/example/http2/helloworld/frame/server/HelloWorldHttp2Handler.java at line 102.
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