rest icon indicating copy to clipboard operation
rest copied to clipboard

Add a Java 9 Flow publisher as Reactive Client response body

Open hantsy opened this issue 3 years ago • 1 comments

Currently, the Java 8 CompletionStage is the standard Rx client provided in Jersey. As part of Java 9 Flow, a Flow based Publisher based implementation should be provided in all providers.

WebTarget target = ClientBuilder.newClient().target("http://localhost:8080/jaxrs-async");

CompletionStage<Void> future = target.request()
    .rx(FlowPublisher.class)
    .get(String.class)
    .subscribe(t -> System.out.println(t));

hantsy avatar Sep 11 '21 15:09 hantsy

Do you like to file a PR containing all needed changes to API, spec, tests and TCK? That would be terrific! :-)

mkarg avatar Feb 10 '22 08:02 mkarg