SentryRequest constructor
SentryRequest({})
Implementation
SentryRequest({
this.url,
this.method,
this.queryString,
String? cookies,
this.fragment,
this.apiTarget,
dynamic data,
Map<String, String>? headers,
Map<String, String>? env,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, String>? other,
this.unknown,
}) : _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() == 'cookie',
)?.value,
_env = env != null ? Map.from(env) : null,
_other = other != null ? Map.from(other) : null;