feat(ffi): add hyper_request_on_informational
This defines an extension type used in requests for the client that is used to setup a callback for receipt of informational (1xx) responses. The type isn't currently public, and is only usable in the C API.
This commit is contained in:
		| @@ -598,11 +598,7 @@ cfg_client! { | ||||
|             match msg { | ||||
|                 Ok((msg, body)) => { | ||||
|                     if let Some(cb) = self.callback.take() { | ||||
|                         let mut res = http::Response::new(body); | ||||
|                         *res.status_mut() = msg.subject; | ||||
|                         *res.headers_mut() = msg.headers; | ||||
|                         *res.version_mut() = msg.version; | ||||
|                         *res.extensions_mut() = msg.extensions; | ||||
|                         let res = msg.into_response(body); | ||||
|                         cb.send(Ok(res)); | ||||
|                         Ok(()) | ||||
|                     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user