buildCanonicalSignedHeaders static method

String buildCanonicalSignedHeaders(
  1. Map<String, String?> headers
)

Implementation

static String buildCanonicalSignedHeaders(Map<String, String?> headers) {
  final sortedKeys = [];
  headers.forEach((property, _) {
    sortedKeys.add(property.toLowerCase());
  });
  sortedKeys.sort();

  return sortedKeys.join(';');
}