pub struct RawResponse {
pub status: u16,
pub reason: &'static str,
pub content_type: &'static str,
pub body: Vec<u8>,
pub headers: Vec<(&'static str, String)>,
}Expand description
A raw HTTP response a RawHandler returns.
Fields§
§status: u16§reason: &'static str§content_type: &'static str§body: Vec<u8>§headers: Vec<(&'static str, String)>Extra response headers (e.g. Retry-After on a 429). Names as written.
Implementations§
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