Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for canonicalHeaders (0.07 sec)

  1. cmd/signature-v2.go

    			continue
    		}
    		keys = append(keys, lkey)
    		keyval[lkey] = strings.Join(headers[key], ",")
    	}
    	sort.Strings(keys)
    	var canonicalHeaders []string
    	for _, key := range keys {
    		canonicalHeaders = append(canonicalHeaders, key+":"+keyval[key])
    	}
    	return strings.Join(canonicalHeaders, "\n")
    }
    
    // Return canonical resource string.
    func canonicalizedResourceV2(encodedResource, encodedQuery string) string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	// canonicalRequest =
    	//  <HTTPMethod>\n
    	//  <CanonicalURI>\n
    	//  <CanonicalQueryString>\n
    	//  <CanonicalHeaders>\n
    	//  <SignedHeaders>\n
    	//  <HashedPayload>
    	//
    	canonicalRequest := strings.Join([]string{
    		req.Method,
    		canonicalURI,
    		req.URL.RawQuery,
    		canonicalHeaders,
    		signedHeaders,
    		hashedPayload,
    	}, "\n")
    
    	// Get scope.
    	scope := strings.Join([]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. cmd/signature-v4.go

    	return strings.Join(headers, ";")
    }
    
    // getCanonicalRequest generate a canonical request of style
    //
    // canonicalRequest =
    //
    //	<HTTPMethod>\n
    //	<CanonicalURI>\n
    //	<CanonicalQueryString>\n
    //	<CanonicalHeaders>\n
    //	<SignedHeaders>\n
    //	<HashedPayload>
    func getCanonicalRequest(extractedSignedHeaders http.Header, payload, queryStr, urlPath, method string) string {
    	rawQuery := strings.ReplaceAll(queryStr, "+", "%20")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top