src/net/authV2.js
/**
     * Compute the canonical HTTP headers string value.
     * 
     * @param {string[]} sortedLowercaseHeaderNames the sorted, lower-cased HTTP header names to include
     * @returns {string} the canonical headers string value
     */
Compute the canonical HTTP headers string value.

@param {string[]} sortedLowercaseHeaderNames the sorted, lower-cased HTTP header names to include
@returns {string} the canonical headers string value
Compute the canonical HTTP headers string value . @param { string [] } sortedLowercaseHeaderNames the sorted lower - cased HTTP header names to include @returns { string } the canonical headers string value
canonicalHeaders(sortedLowercaseHeaderNames) {
        var result = '',
            headerName,
            headerValue;
        const len = sortedLowercaseHeaderNames.length;
        for ( let i = 0; i < len; i += 1 ) {
            headerName = sortedLowercaseHeaderNames[i];
            if ( "date" === headerName ||  "x-sn-date" === headerName ) {
                headerValue = this.requestDate.toUTCString();
            } else {
                headerValue = this.httpHeaders.firstValue(headerName);
            }
            result += headerName +':' + (headerValue ? headerValue.trim() : '') + '\n';
        }
        return result;
    }
canonicalHeaders ( sortedLowercaseHeaderNames ) { var result = '' , headerName , headerValue ; const len = sortedLowercaseHeaderNames . length ; for ( let i = 0 ; i < len ; i += 1 ) { headerName = sortedLowercaseHeaderNames [ i ] ; if ( "date" === headerName || "x-sn-date" === headerName ) { headerValue = this . requestDate . toUTCString ( ) ; } else { headerValue = this . httpHeaders . firstValue ( headerName ) ; } result += headerName + ':' + ( headerValue ? headerValue . trim ( ) : '' ) + '\n' ; } return result ; }
Compute the canonical HTTP headers string value.
Compute the canonical HTTP headers string value .