pub async fn try_read_body<B>(
res: ServiceResponse<B>,
) -> Result<Bytes, <B as MessageBody>::Error>where
B: MessageBody,Expand description
Fallible version of read_body that allows testing MessageBody reading errors.
pub async fn try_read_body<B>(
res: ServiceResponse<B>,
) -> Result<Bytes, <B as MessageBody>::Error>where
B: MessageBody,Fallible version of read_body that allows testing MessageBody reading errors.