Class ChunkExtension
java.lang.Object
org.apache.tomcat.util.http.parser.ChunkExtension
Unlike other HTTP parsers, this is a stateless (state is held by the calling code), streaming parser as chunk headers
are read as part of the request body and it is not always possible to buffer then entire chunk header in memory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumParsing states for chunk extension. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkExtension.Stateparse(byte b, ChunkExtension.State state) Parses the next byte of a chunk extension.
-
Method Details
-
parse
Parses the next byte of a chunk extension.- Parameters:
b- the byte to parsestate- the current parsing state- Returns:
- the next parsing state
- Throws:
IOException- if the byte is invalid for the current state
-