pub struct HttpResponse {
pub status: u16,
pub body: Vec<u8>,
pub retry_after: Option<String>,
}Expand description
Raw HTTP response — enough for fetch_usage to classify the
outcome without leaking the HTTP crate to callers.
Fields§
§status: u16§body: Vec<u8>§retry_after: Option<String>Verbatim Retry-After header value if present. Parsing lives
in [parse_retry_after] so the transport stays dumb.
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnsafeUnpin for HttpResponse
impl UnwindSafe for HttpResponse
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