Function actix_web::test::try_call_and_read_body_json
source · pub async fn try_call_and_read_body_json<S, B, T>(
app: &S,
req: Request
) -> Result<T, Box<dyn StdError>>where
S: Service<Request, Response = ServiceResponse<B>, Error = Error>,
B: MessageBody,
T: DeserializeOwned,
Expand description
Fallible version of call_and_read_body_json
that allows testing service call errors.