pub struct HttpFetchResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
Response returned by HttpFetchBackend.
Fields§
§status: u16§headers: Vec<(String, String)>§body: Vec<u8>Implementations§
Source§impl HttpFetchResponse
impl HttpFetchResponse
Sourcepub fn from_http_response(resp: &Response<Bytes>) -> Self
pub fn from_http_response(resp: &Response<Bytes>) -> Self
Build a HttpFetchResponse from a borrowed
http::Response<Bytes>. Mirrors HttpFetchRequest::from_http_request
— non-UTF-8 header values are skipped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpFetchResponse
impl RefUnwindSafe for HttpFetchResponse
impl Send for HttpFetchResponse
impl Sync for HttpFetchResponse
impl Unpin for HttpFetchResponse
impl UnsafeUnpin for HttpFetchResponse
impl UnwindSafe for HttpFetchResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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