Function actix_web::test::try_read_body_json
source ยท pub async fn try_read_body_json<T, B>(
res: ServiceResponse<B>
) -> Result<T, Box<dyn StdError>>where
B: MessageBody,
T: DeserializeOwned,
Expand description
Fallible version of read_body_json
that allows testing response deserialization errors.