pub struct ClientResponse { /* private fields */ }Available on crate feature
std only.Expand description
Implementations§
Source§impl ClientResponse
impl ClientResponse
Sourcepub fn headers(&self) -> impl Iterator<Item = (&str, &[u8])>
pub fn headers(&self) -> impl Iterator<Item = (&str, &[u8])>
The fields in arrival order.
§Examples
let resp = http_net::blocking::get("http://127.0.0.1:8080/")?;
for (name, value) in resp.headers() {
let _ = (name, value);
}Trait Implementations§
Source§impl Clone for ClientResponse
impl Clone for ClientResponse
Source§impl Debug for ClientResponse
impl Debug for ClientResponse
impl Eq for ClientResponse
Source§impl PartialEq for ClientResponse
impl PartialEq for ClientResponse
impl StructuralPartialEq for ClientResponse
Auto Trait Implementations§
impl Freeze for ClientResponse
impl RefUnwindSafe for ClientResponse
impl Send for ClientResponse
impl Sync for ClientResponse
impl Unpin for ClientResponse
impl UnsafeUnpin for ClientResponse
impl UnwindSafe for ClientResponse
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