headers property

Map<String, String>? get headers

HTTP headers of the response. if you need repeated headers, use rawHeaders

Implementation

Map<String, String>? get headers =>
    _headers ??
    _rawHeaders?.map((key, valueList) =>
        MapEntry(key, valueList.isEmpty ? "" : valueList.last));