SentryResponse class

The response interface contains information on a HTTP request related to the event.

Annotations
  • @immutable

Constructors

SentryResponse({int? bodySize, int? statusCode, Map<String, String>? headers, String? cookies, Object? data})
SentryResponse.fromJson(Map<String, dynamic> json)
Deserializes a SentryResponse from JSON Map.
factory

Properties

bodySize int?
The size of the response body.
final
cookies String?
Cookie key-value pairs as string.
final
data Object?
Response data in any format that makes sense.
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The HTTP status code of the response. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
final

Methods

clone() SentryResponse
copyWith({int? statusCode, int? bodySize, Map<String, String>? headers, String? cookies, Object? data}) SentryResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Produces a Map that can be serialized to JSON.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

type → const String
The type of this class in the Contexts field