implement separated handler for request

This commit is contained in:
yggverse 2025-01-18 13:43:06 +02:00
parent 225b13270a
commit 6f16ccaa2d
4 changed files with 62 additions and 20 deletions

View file

@ -73,7 +73,9 @@ impl Client {
time: now(),
value: query.to_string(),
});
Request::route(self, query, None, self.new_cancellable(), callback);
Request::parse(query, None)
.unwrap() // @TODO
.handle(self, self.new_cancellable(), callback);
}
/// Get new [Cancellable](https://docs.gtk.org/gio/class.Cancellable.html) by cancel previous one