spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

How can I edit multipartData in GatewayFilter?

Open bigthouzand opened this issue 7 years ago • 1 comments

Mono<MultiValueMap<String, Part>> multiValueMapMono = exchange.getMultipartData().flatMap(part -> {
            for (String key : part.keySet()) {
               // verify parameter
            }
            MultiValueMap<String, Part> newMultiValueMap = new LinkedMultiValueMap<>();
            // add...
            Mono.just(newMultiValueMap);
}

how can I mutate the exchange?

bigthouzand avatar Jul 03 '19 05:07 bigthouzand

I dont think we do out of the box right now. @spencergibb can you confirm? Seems like a nice enhancement.

ryanjbaxter avatar Jul 08 '19 14:07 ryanjbaxter