Skip to main content

parse

Function parse 

Source
pub async fn parse<T: DeserializeOwned>(res: Response) -> Result<T, XrpcError>
Expand description

Checks the status of an already-received response and deserializes its JSON body into T. Useful when the caller needs to inspect response headers (e.g. DPoP nonces) before handing off parsing.