Package org.apache.hc.core5.http.io
Interface HttpMessageParser<T extends MessageHeaders>
- Type Parameters:
T-MessageHeadersor 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 ofMessageHeadersfrom the given input stream..
-
Method Details
-
parse
Generates an instance ofMessageHeadersfrom the given input stream..- Parameters:
buffer- Session input bufferinputStream- Input stream- Returns:
- HTTP message head or
nullif 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
-