Closed
Description
WebFluxMessageHandlerSpec.replyPayloadToFlux
The workaround is to create a method like the following:
private WebFluxMessageHandlerSpec webFluxMessageHandlerSpec() {
WebFluxMessageHandlerSpec spec = WebFlux.outboundGateway(m -> m.getPayload().toString(), webClient)
.expectedResponseType(Whatever.class)
.httpMethod(GET)
.mappedRequestHeaders(ACCEPT);
spec.replyPayloadToFlux(true);
return spec;
}
@artembilan this is what we discussed on Twitter. Since I don't see the fix yet in the repo, I'm going to proceed with a PR myself.
Metadata
Metadata
Assignees
Labels
No labels