buildCanonicalSignedHeaders static method

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

Implementation

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

  return sortedKeys.join(';');
}