java.lang.Object
io.helidon.webserver.http.DecodedLimiter
Limits decoded request entity streams.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamlimit(InputStream stream, long maxSize) Limit a decoded stream to the specified size.
-
Method Details
-
limit
Limit a decoded stream to the specified size.- Parameters:
stream- stream to limitmaxSize- maximum size, or a negative number to disable limiting- Returns:
- limited stream, or the original stream when the limit is disabled
-