Skip to main content

json

Function json 

Source
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.