SentryResponse constructor
SentryResponse({})
Implementation
SentryResponse({
this.bodySize,
this.statusCode,
Map<String, String>? headers,
String? cookies,
Object? data,
}) : _data = data,
_headers = headers != null ? Map.from(headers) : null,
// Look for a 'Set-Cookie' header (case insensitive) if not given.
cookies = cookies ??
IterableUtils.firstWhereOrNull(
headers?.entries,
(MapEntry<String, String> e) =>
e.key.toLowerCase() == 'set-cookie',
)?.value;