java.lang.Object
io.helidon.webclient.http1.Http1StatusParser
Parser of HTTP/1.0 or HTTP/1.1 response status.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Status
readStatus
(DataReader reader, int maxLength) Read the status line from HTTP/1.0 or HTTP/1.1 response.
-
Method Details
-
readStatus
Read the status line from HTTP/1.0 or HTTP/1.1 response.- Parameters:
reader
- data reader to obtain bytes frommaxLength
- maximal number of bytes that can be processed before end of line is reached- Returns:
- parsed HTTP status
- Throws:
IllegalStateException
- in case of unexpected dataDataReader.InsufficientDataAvailableException
- when not enough data can be obtainedDataReader.IncorrectNewLineException
- in case we are missing correct end of line (CRLF)RuntimeException
- additional exceptions may be thrown from the reader, depending on its implementation
-