buildCanonicalRequest static method
Implementation
static String buildCanonicalRequest(
String method,
String path,
Map<String, String> queryParams,
Map<String, String> headers,
String payload) {
List<String> canonicalRequest = [
method,
buildCanonicalUri(path),
buildCanonicalQueryString(queryParams),
buildCanonicalHeaders(headers),
buildCanonicalSignedHeaders(headers),
hexEncode(hash(utf8.encode(payload))),
];
return canonicalRequest.join('\n');
}