pub struct RawResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Available on crate feature
rest only.Expand description
An HTTP response as received, any status
Fields§
§status: u16The HTTP status
headers: Vec<(String, String)>Header names as sent; looked up case-insensitively by RawResponse::header
body: Vec<u8>The body
Implementations§
Trait Implementations§
Source§impl Clone for RawResponse
impl Clone for RawResponse
Source§impl Debug for RawResponse
impl Debug for RawResponse
Source§impl Default for RawResponse
impl Default for RawResponse
impl Eq for RawResponse
Source§impl PartialEq for RawResponse
impl PartialEq for RawResponse
impl StructuralPartialEq for RawResponse
Auto Trait Implementations§
impl Freeze for RawResponse
impl RefUnwindSafe for RawResponse
impl Send for RawResponse
impl Sync for RawResponse
impl Unpin for RawResponse
impl UnsafeUnpin for RawResponse
impl UnwindSafe for RawResponse
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.