Headers.fromMap constructor

Headers.fromMap(
  1. Map<String, List<String>> map, {
  2. bool preserveHeaderCase = false,
})

Create the Headers from a Map instance.

Implementation

Headers.fromMap(
  Map<String, List<String>> map, {
  this.preserveHeaderCase = false,
}) : _map = caseInsensitiveKeyMap<List<String>>(
        map.map((k, v) => MapEntry(k.trim(), v)),
      );