SentryRequest constructor

SentryRequest({
  1. String? url,
  2. String? method,
  3. String? queryString,
  4. String? cookies,
  5. String? fragment,
  6. String? apiTarget,
  7. dynamic data,
  8. Map<String, String>? headers,
  9. Map<String, String>? env,
  10. @Deprecated('Will be removed in v8. Use [data] instead') Map<String, String>? other,
  11. Map<String, dynamic>? unknown,
})

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;