pub struct ResponseContext {
pub cookies: Annotated<Cookies>,
pub headers: Annotated<Headers>,
pub status_code: Annotated<u64>,
pub body_size: Annotated<u64>,
pub data: Annotated<Value>,
pub inferred_content_type: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Response interface that contains information on a HTTP response related to the event.
The data variable should only contain the response body. It can either be a dictionary (for standard HTTP responses) or a raw response body.
Fields§
The cookie values.
Can be given unparsed as string, as dictionary, or as a list of tuples.
headers: Annotated<Headers>
A 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.
status_code: Annotated<u64>
HTTP status code.
body_size: Annotated<u64>
HTTP response body size.
data: Annotated<Value>
Response data in any format that makes sense.
SDKs should discard large and binary bodies by default. Can be given as a string or structural data of any format.
inferred_content_type: Annotated<String>
The inferred content type of the response payload.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
These fields are retained (retain = true
) to keep supporting the format that the Dio integration sends:
https://github.com/getsentry/sentry-dart/blob/7011abe27ac69bd160bdc6ecf3314974b8340b97/dart/lib/src/protocol/sentry_response.dart#L4-L8
Trait Implementations§
Source§impl Clone for ResponseContext
impl Clone for ResponseContext
Source§fn clone(&self) -> ResponseContext
fn clone(&self) -> ResponseContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ResponseContext
impl Debug for ResponseContext
Source§impl Default for ResponseContext
impl Default for ResponseContext
Source§fn default() -> ResponseContext
fn default() -> ResponseContext
Source§impl DefaultContext for ResponseContext
impl DefaultContext for ResponseContext
Source§fn default_key() -> &'static str
fn default_key() -> &'static str
Contexts
.