pub struct HttpClientResponse { /* private fields */ }Expand description
The response for the default DefaultResponseExtractor.
Implementations§
Source§impl HttpClientResponse
impl HttpClientResponse
pub fn new(headers: HashMap<String, String>, body: Bytes) -> Self
Sourcepub fn status_code(&self) -> u32
pub fn status_code(&self) -> u32
Returns the status code.
Sourcepub fn headers(&self) -> &HashMap<String, String>
pub fn headers(&self) -> &HashMap<String, String>
Returns a list of headers grouped by name and value.
Sourcepub fn as_utf8_lossy(&self) -> String
pub fn as_utf8_lossy(&self) -> String
Returns the body in String format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpClientResponse
impl RefUnwindSafe for HttpClientResponse
impl Send for HttpClientResponse
impl Sync for HttpClientResponse
impl Unpin for HttpClientResponse
impl UnwindSafe for HttpClientResponse
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