Top Description Methods
org.apache.hc.core5.http.io

public Interface HttpMessageParser<T extends org.apache.hc.core5.http.MessageHeaders>

Known Direct Implementers
org.apache.hc.core5.http.impl.io.AbstractMessageParser
Type Parameters
<T>
MessageHeaders or a subclass
Imports
java.io.IOException, .InputStream, org.apache.hc.core5.http.HttpException, .MessageHeaders

Message parser intended to build HTTP message head from an input stream.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

HTTP message head or null if the input stream has been closed by the opposite endpoint.
parse
(SessionInputBuffer
Session input buffer
buffer
,
InputStream
Input stream
inputStream
)

Generates an instance of MessageHeaders from the given input stream..

Method Detail

parseback to summary
public T parse(SessionInputBuffer buffer, InputStream inputStream) throws IOException, HttpException

Generates an instance of MessageHeaders from the given input stream..

Parameters
buffer:SessionInputBuffer

Session input buffer

inputStream:InputStream

Input stream

Returns:T

HTTP message head or null if the input stream has been closed by the opposite endpoint.

Exceptions
IOException:
in case of an I/O error
HttpException:
in case of HTTP protocol violation