Interface ContentLengthStrategy

    • Method Detail

      • determineLength

        long determineLength​(HttpMessage message)
                      throws HttpException
        Returns length of the given message in bytes. The returned value must be a non-negative number, IDENTITY if the end of the message will be delimited by the end of connection, or CHUNKED if the message is chunk coded
        Parameters:
        message - HTTP message
        Returns:
        content length, IDENTITY, or CHUNKED
        Throws:
        HttpException - in case of HTTP protocol violation