Class Http1RequestCutShort

java.lang.Object
org.mockserver.netty.unification.Http1RequestCutShort

public final class Http1RequestCutShort extends Object
What MockServer logs when an HTTP/1.1 connection closes, by its client's close or reset or otherwise, while a request's body is still arriving: one INFO entry with the request's method, path, query string and headers where the aggregator still holds them, and no stack trace, as an HTTP/2 stream that ends with its connection is logged by Http2StreamFaults. HTTP/1.1 has no way to cancel an upload short of closing the connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
    Whether cause is the aggregator of an HTTP/1.1 connection that has closed reporting the part of a request it held, which this logs.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isRequestCutShort

      public static boolean isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Whether cause is the aggregator of an HTTP/1.1 connection that has closed reporting the part of a request it held, which this logs. A connection the request-line, header or chunk limits rejected is HttpChunkLineLimiter's to recognise first, and an HTTP/2 stream Http2StreamFaults'.