private boolean useChunkEncoding ( SignableRequest < ? > request ) { // If chunked encoding is explicitly disabled through client options return right here. // Chunked encoding only makes sense to do when the payload is signed if ( ! isPayloadSigningEnabled ( request ) || isChunkedEncodingDisabled ( request ) ) { return false ; } if ( request . getOriginalRequestObject ( ) instanceof PutObjectRequest || request . getOriginalRequestObject ( ) instanceof UploadPartRequest ) { return true ; } return false ; }
Determine whether to use aws - chunked for signing