vert-x3 / vertx-rx

Reactive Extensions for Vert.x
Apache License 2.0
147 stars 73 forks source link

Implement HTTP response expectations with transformers #318

Closed tsegismont closed 2 weeks ago

tsegismont commented 2 weeks ago

As far as I know, it is recommended to favor composition (io.reactivex.Single#compose) instead of custom operators (io.reactivex.Single#lift).

As the Javadoc of lift suggests, there are some optimizations that a custom operator must implement itself, that built-in operators implement already.

Besides, if I remember correctly, this is what @jponge recommends for Mutiny extensions as well (start with composition and use custom operators as a last resort).

I would imagine the same feature (HttpResponse expectations) will be implemented with composition in Mutiny, it would be nice to be consistent.