public class NettyResponseWriter extends ResponseWriter
Constructor and Description |
---|
NettyResponseWriter(io.netty.channel.ChannelHandlerContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
writeResponse(HttpRequest request,
HttpResponse response,
boolean apiResponse) |
void |
writeResponse(HttpRequest request,
io.netty.handler.codec.http.HttpResponseStatus responseStatus) |
void |
writeResponse(HttpRequest request,
io.netty.handler.codec.http.HttpResponseStatus responseStatus,
String body,
String contentType) |
addConnectionHeader
public NettyResponseWriter(io.netty.channel.ChannelHandlerContext ctx)
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus)
writeResponse
in class ResponseWriter
public void writeResponse(HttpRequest request, io.netty.handler.codec.http.HttpResponseStatus responseStatus, String body, String contentType)
writeResponse
in class ResponseWriter
public void writeResponse(HttpRequest request, HttpResponse response, boolean apiResponse)
writeResponse
in class ResponseWriter
Copyright © 2018. All rights reserved.