spring-cloud-gateway
spring-cloud-gateway copied to clipboard
How can I edit multipartData in GatewayFilter?
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?
I dont think we do out of the box right now. @spencergibb can you confirm? Seems like a nice enhancement.