Struct relay_event_schema::protocol::ResponseContext
source · 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
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
source§fn into_context(self) -> Context
fn into_context(self) -> Context
source§impl Empty for ResponseContext
impl Empty for ResponseContext
source§impl FromValue for ResponseContext
impl FromValue for ResponseContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for ResponseContext
impl IntoValue for ResponseContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl PartialEq for ResponseContext
impl PartialEq for ResponseContext
source§impl ProcessValue for ResponseContext
impl ProcessValue for ResponseContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for ResponseContext
Auto Trait Implementations§
impl Freeze for ResponseContext
impl RefUnwindSafe for ResponseContext
impl Send for ResponseContext
impl Sync for ResponseContext
impl Unpin for ResponseContext
impl UnwindSafe for ResponseContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)