Class DecodedLimiter

java.lang.Object
io.helidon.webserver.http.DecodedLimiter

public final class DecodedLimiter extends Object
Limits decoded request entity streams.
  • Method Details

    • limit

      public static InputStream limit(InputStream stream, long maxSize)
      Limit a decoded stream to the specified size.
      Parameters:
      stream - stream to limit
      maxSize - maximum size, or a negative number to disable limiting
      Returns:
      limited stream, or the original stream when the limit is disabled