Skip to main content

response_json

Function response_json 

Source
pub async fn response_json<T: DeserializeOwned>(
    response: Response<impl Body<Data = Bytes, Error = ErrorCode>>,
) -> Result<T, Error>
Expand description

Collect the remaining body in memory and decode JSON, regardless of status.