Package org.apache.hc.core5.http.io
Interface HttpMessageParser<T extends MessageHeaders>
- Type Parameters:
T
-MessageHeaders
or a subclass
- All Known Implementing Classes:
AbstractMessageParser
,DefaultHttpRequestParser
,DefaultHttpResponseParser
public interface HttpMessageParser<T extends MessageHeaders>
Message parser intended to build HTTP message head from an input stream.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionparse
(SessionInputBuffer buffer, InputStream inputStream) Generates an instance ofMessageHeaders
from the given input stream..
-
Method Details
-
parse
Generates an instance ofMessageHeaders
from the given input stream..- Parameters:
buffer
- Session input bufferinputStream
- Input stream- Returns:
- HTTP message head or
null
if the input stream has been closed by the opposite endpoint. - Throws:
IOException
- in case of an I/O errorHttpException
- in case of HTTP protocol violation
-