pub struct FetchResponse {
pub status: u16,
pub status_text: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
Raw HTTP response returned by a host FetchHandler.
Fields§
§status: u16§status_text: String§headers: Vec<(String, String)>§body: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for FetchResponse
impl Clone for FetchResponse
Source§impl Debug for FetchResponse
impl Debug for FetchResponse
Source§impl PartialEq for FetchResponse
impl PartialEq for FetchResponse
impl StructuralPartialEq for FetchResponse
Auto Trait Implementations§
impl Forget for FetchResponse
impl Freeze for FetchResponse
impl Move for FetchResponse
impl RefUnwindSafe for FetchResponse
impl Send for FetchResponse
impl Sync for FetchResponse
impl Unpin for FetchResponse
impl UnsafeUnpin for FetchResponse
impl UnwindSafe for FetchResponse
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