pub struct PartialResponse {
pub url: String,
pub ok: bool,
pub status: u16,
pub status_text: String,
pub headers: Headers,
}Expand description
An HTTP response status line and headers used for the streaming API.
Fields§
§url: StringThe URL we ended up at. This can differ from the request url when we have followed redirects.
ok: boolDid we get a 2xx response code?
status: u16Status code (e.g. 404 for “File not found”).
status_text: StringStatus text (e.g. “File not found” for status code 404).
headers: HeadersThe returned headers.
Implementations§
Trait Implementations§
Source§impl Clone for PartialResponse
impl Clone for PartialResponse
Source§fn clone(&self) -> PartialResponse
fn clone(&self) -> PartialResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PartialResponse
impl RefUnwindSafe for PartialResponse
impl Send for PartialResponse
impl Sync for PartialResponse
impl Unpin for PartialResponse
impl UnwindSafe for PartialResponse
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