pub async fn json<T: DeserializeOwned>(
response: Response,
) -> Result<T, HttpsError>Expand description
Reads a JSON answer.
ยงErrors
HttpsError::Protocol when it does not read as T, and
HttpsError::Transport when the answer breaks off.
pub async fn json<T: DeserializeOwned>(
response: Response,
) -> Result<T, HttpsError>Reads a JSON answer.
HttpsError::Protocol when it does not read as T, and
HttpsError::Transport when the answer breaks off.