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.