Package org.mockserver.netty.unification
Class Http1RequestCutShort
java.lang.Object
org.mockserver.netty.unification.Http1RequestCutShort
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 TypeMethodDescriptionstatic booleanisRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Throwable cause) Whethercauseis the aggregator of an HTTP/1.1 connection that has closed reporting the part of a request it held, which this logs.
-
Method Details
-
isRequestCutShort
public static boolean isRequestCutShort(org.mockserver.logging.MockServerLogger mockServerLogger, io.netty.channel.ChannelHandlerContext ctx, Throwable cause) Whethercauseis 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 isHttpChunkLineLimiter's to recognise first, and an HTTP/2 streamHttp2StreamFaults'.
-