OkResponseHandler Class — netty Architecture
Architecture documentation for the OkResponseHandler class in OkResponseHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c6c89cec_eade_7ca2_201f_21eea888b59b["OkResponseHandler"] 72edcf0d_488f_3a8d_bf6d_ebe83680a2f3["OkResponseHandler.java"] c6c89cec_eade_7ca2_201f_21eea888b59b -->|defined in| 72edcf0d_488f_3a8d_bf6d_ebe83680a2f3 15969108_f4ff_eb17_fb53_97ba09d02fab["channelRead0()"] c6c89cec_eade_7ca2_201f_21eea888b59b -->|method| 15969108_f4ff_eb17_fb53_97ba09d02fab
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/cors/OkResponseHandler.java lines 31–39
public class OkResponseHandler extends SimpleChannelInboundHandler<Object> {
@Override
public void channelRead0(ChannelHandlerContext ctx, Object msg) {
final FullHttpResponse response = new DefaultFullHttpResponse(
HttpVersion.HTTP_1_1, HttpResponseStatus.OK, Unpooled.EMPTY_BUFFER);
response.headers().set("custom-response-header", "Some value");
ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);
}
}
Source
Frequently Asked Questions
What is the OkResponseHandler class?
OkResponseHandler is a class in the netty codebase, defined in example/src/main/java/io/netty/example/http/cors/OkResponseHandler.java.
Where is OkResponseHandler defined?
OkResponseHandler is defined in example/src/main/java/io/netty/example/http/cors/OkResponseHandler.java at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free