smallrye / smallrye-mutiny-vertx-bindings

Smallrye Mutiny bindings for Eclipse Vert.x
https://smallrye.io/smallrye-mutiny-vertx-bindings
Apache License 2.0
82 stars 26 forks source link

expecting() missing in Vertx WebClient #989

Open sschellh opened 1 week ago

sschellh commented 1 week ago

In the latest Quarkus version, the method public io.vertx.mutiny.ext.web.client.HttpRequest expect(io.vertx.mutiny.ext.web.client.predicate.ResponsePredicate predicate) is deprecated.

According to the vert.x documentation (https://vertx.io/docs/vertx-web-client/java/), one shall use expecting instead. However, this method seems not to be available in Quarkus.

jponge commented 1 week ago

Note: expecting is a method for Vert.x Future<T>, but since we wrap Future-returning methods to Uni, this requires further investigations.

jponge commented 1 week ago

/cc @vietj @cescoffier

jponge commented 1 week ago

To support cases like https://vertx.io/docs/apidocs/io/vertx/core/http/HttpResponseExpectation.html we'd need:

/cc @tsegismont