public class NettyResponseWriter extends ResponseWriter
Constructor and Description |
---|
NettyResponseWriter(MockServerLogger mockServerLogger,
io.netty.channel.ChannelHandlerContext ctx,
Scheduler scheduler) |
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(MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Scheduler scheduler)
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 © 2020. All rights reserved.