response_json

Function response_json 

Source
pub async fn response_json<T: DeserializeOwned>(
    request: Request<Body>,
) -> Result<Response<T>>
Expand description

Loads the given request and parses the response as JSON into the given type, including rate-limit headers.