pub struct TransportResponse {
pub status: u16,
pub url: Url,
pub headers: Vec<(String, String)>,
pub body: BodyStream,
}Expand description
A response produced by an HttpTransport.
The body is a streaming byte source so fetchkit can apply its body-size cap, body timeout, and partial-content-on-timeout logic while reading.
Fields§
§status: u16HTTP status code.
url: UrlFinal URL after the transport executed the request (same as request URL; fetchkit follows redirects itself, so this normally equals the request URL).
headers: Vec<(String, String)>Response headers.
body: BodyStreamStreaming response body.
Auto Trait Implementations§
impl !RefUnwindSafe for TransportResponse
impl !Sync for TransportResponse
impl !UnwindSafe for TransportResponse
impl Freeze for TransportResponse
impl Send for TransportResponse
impl Unpin for TransportResponse
impl UnsafeUnpin for TransportResponse
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