mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-11 12:27:44 +02:00
Add support to client transports for requests that may result in multiple
responses. (#377) This adds ComposeRequestMulti and other *Multi types. The main change is to the stream transport, which is the only transport that implements SendRequestMulti.
This commit is contained in:
@@ -84,7 +84,7 @@ async fn test_transport_error() {
|
||||
let mut msg = msg.question();
|
||||
msg.push((Name::vec_from_str("example.com").unwrap(), Rtype::AAAA))
|
||||
.unwrap();
|
||||
let req = RequestMessage::new(msg);
|
||||
let req = RequestMessage::new(msg).unwrap();
|
||||
|
||||
let mut request = cached.send_request(req.clone());
|
||||
let reply = request.get_response().await;
|
||||
|
||||
Reference in New Issue
Block a user