public class RouteMethodHandler extends Object implements RequestHandler<io.netty.channel.ChannelHandlerContext>
构造器和说明 |
---|
RouteMethodHandler() |
限定符和类型 | 方法和说明 |
---|---|
io.netty.handler.codec.http.FullHttpResponse |
createTextResponse(Response response,
String body) |
Map<String,String> |
getDefaultHeader() |
void |
handle(io.netty.channel.ChannelHandlerContext ctx,
Request request,
Response response) |
Void |
handleFullResponse(io.netty.handler.codec.http.FullHttpResponse response,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
void |
handleResponse(Request request,
Response response,
io.netty.channel.ChannelHandlerContext context) |
Void |
handleStreamResponse(Response response,
InputStream body,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
public void handleResponse(Request request, Response response, io.netty.channel.ChannelHandlerContext context)
public Void handleFullResponse(io.netty.handler.codec.http.FullHttpResponse response, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public Void handleStreamResponse(Response response, InputStream body, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public io.netty.handler.codec.http.FullHttpResponse createTextResponse(Response response, String body)
Copyright © 2018. All rights reserved.