pub struct Request {
pub method: &'static str,
pub url: String,
pub headers: Vec<(&'static str, String)>,
pub body: Vec<u8>,
}Expand description
An HTTP request to Sentry’s envelope endpoint.
Fields§
§method: &'static strThe method: POST.
url: StringThe envelope endpoint, {scheme}://{host}{:port}/api/{project}/envelope/.
headers: Vec<(&'static str, String)>Content-Type and X-Sentry-Auth.
body: Vec<u8>The envelope: header, item header and event, one JSON document per line.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.