Skip to content

WebFluxMessageHandlerSpec should support chaining #2340

Closed
@asarkar

Description

@asarkar

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions