SentryRequest constructor
SentryRequest({})
Implementation
SentryRequest({
this.url,
this.method,
this.queryString,
String? cookies,
this.fragment,
dynamic data,
Map<String, String>? headers,
Map<String, String>? env,
@Deprecated('Will be removed in v7.') Map<String, String>? other,
}) : _data = data,
_headers = headers != null ? Map.from(headers) : null,
// Look for a 'Set-Cookie' header (case insensitive) if not given.
cookies = cookies ??
headers?.entries
.firstWhereOrNull((e) => e.key.toLowerCase() == 'cookie')
?.value,
_env = env != null ? Map.from(env) : null,
_other = other != null ? Map.from(other) : null;