Struct ark_api::http_client::HttpResponse
source · pub struct HttpResponse {
pub code: StatusCode,
pub body: Vec<u8>,
}Expand description
The response of a HttpClient call.
Fields§
§code: StatusCodeThe code of the call.
body: Vec<u8>The returned body.
Implementations§
source§impl HttpResponse
impl HttpResponse
sourcepub fn body_string(self) -> Result<String, FromUtf8Error>
pub fn body_string(self) -> Result<String, FromUtf8Error>
Attempt reading the body as a string.
Auto Trait Implementations§
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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