Interface HttpMessageParser<T extends MessageHeaders>

    • Method Detail

      • parse

        T parse​(SessionInputBuffer buffer,
                java.io.InputStream inputStream)
         throws java.io.IOException,
                HttpException
        Generates an instance of MessageHeaders from the given input stream..
        Parameters:
        buffer - Session input buffer
        inputStream - Input stream
        Returns:
        HTTP message head or null if the input stream has been closed by the opposite endpoint.
        Throws:
        java.io.IOException - in case of an I/O error
        HttpException - in case of HTTP protocol violation