Function on_informational
fn on_informational<B, F>(req: &mut Request<B>, callback: F)
where
F: Fn(Response<'_>) + Send + Sync + 'static
Add a callback for 1xx informational responses.
Example
# let some_body = ;
let mut req = new;
on_informational;
// send request on a client connection...