SentryRequest class

The Request interface contains information on a HTTP request related to the event. In client SDKs, this can be an outgoing request, or the request that rendered the current web page. On server SDKs, this could be the incoming web request that is being handled.

Annotations
  • @immutable

Constructors

SentryRequest({String? url, String? method, String? queryString, String? cookies, dynamic data, Map<String, String>? headers, Map<String, String>? env, Map<String, String>? other})

Properties

cookies String?
The cookie values as string.
final
data → dynamic
Submitted data in a format that makes the most sense. SDKs should discard large bodies by default. Can be given as string or structural data of any format.
no setter
env Map<String, String>
An immutable dictionary containing environment information passed from the server. This is where information such as CGI/WSGI/Rack keys go that are not HTTP headers.
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
An immutable dictionary of submitted headers. If a header appears multiple times it, needs to be merged according to the HTTP standard for header merging. Header names are treated case-insensitively by Sentry.
no setter
method String?
The HTTP method of the request.
final
other Map<String, String>
no setter
queryString String?
The query string component of the URL.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
The URL of the request if available. The query string can be declared either as part of the url, or separately in queryString.
final

Methods

copyWith({String? url, String? method, String? queryString, String? cookies, dynamic data, Map<String, String>? headers, Map<String, String>? env, Map<String, String>? other}) SentryRequest
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited