Class HttpErrorActionHandler

java.lang.Object
org.mockserver.mock.action.http.HttpErrorActionHandler

public class HttpErrorActionHandler extends Object
Applies an HttpError action to the underlying Netty channel: writes raw response bytes, resets the request stream (HTTP/2 RST_STREAM, written here; HTTP/3 RESET_STREAM, handled by the HTTP/3 response writer seam in mockserver-netty), and/or drops the connection.
Author:
jamesdbloom
  • Constructor Details

    • HttpErrorActionHandler

      public HttpErrorActionHandler()
  • Method Details

    • handle

      public void handle(HttpError httpError, io.netty.channel.ChannelHandlerContext ctx)
    • handle

      public void handle(HttpError httpError, HttpRequest request, io.netty.channel.ChannelHandlerContext ctx)