Interface ChecksumCalculatingAsyncRequestBody.Builder

    • Method Detail

      • trailerHeader

        ChecksumCalculatingAsyncRequestBody.Builder trailerHeader​(String trailerHeader)
        Sets the Trailer header where computed SdkChecksum will be updated.
        Parameters:
        trailerHeader - Trailer header name which will be appended at the end of the string.
        Returns:
        This builder for method chaining.
      • contentLengthHeader

        ChecksumCalculatingAsyncRequestBody.Builder contentLengthHeader​(Long contentLengthHeader)
        Optional. The Content-Length header as specified on the request object. Will stop calculating checksum once this amount of bytes is read from the wrapped AsyncRequestBody. Take precedence over content length specified in the AsyncRequestBody, if both are present and different.
        Parameters:
        contentLengthHeader - the value of the Content-Length header of the http request.
        Returns:
        This builder for method chaining.