Simplify applying a strategy to requests from WebTestClient and WebTestClient [SPR-15691] #20250
With the changes from #20216 modifying a request with a strategy (i.e.
now the code is
It would be ideal to make this a single statement again.
One idea would be to provide a single method that accepts an
Another (improved) approach would be to allow
This would allow the
This approach improves usability in regards to if an
You can see that this is a burden on the user to have to provide
This approach also means we can make additional requests in the
Affects: 5.0 RC3
Referenced from: commits 74b4c02
The text was updated successfully, but these errors were encountered:
Rob Winch commented
You can find a sample of why this is needed at https://github.com/rwinch/spring-webclient-sample/blob/SPR-15691-webclient-filters-single-method/src/test/java/sample/MakesRestfulCallController.java
There are some tests go along with it https://github.com/rwinch/spring-webclient-sample/blob/SPR-15691-webclient-filters-single-method/src/test/java/sample/WebClientTests.java#L71