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
        message - HTTP message
        content length, IDENTITY, or CHUNKED
        HttpException - in case of HTTP protocol violation