Adds rewriteLocationResponseHeader() example

This commit is contained in:
sgibb
2023-12-04 14:29:14 -05:00
parent 7457b30087
commit 75885f658a

View File

@@ -1065,6 +1065,7 @@ public class ServerMvcIntegrationTests {
.before(new HttpbinUriResolver())
// reverse order for "post" filters
.after(rewriteLocationResponseHeader())
//.after(rewriteLocationResponseHeader(config -> config.setLocationHeaderName("Location").setStripVersion(RewriteLocationResponseHeaderFilterFunctions.StripVersion.AS_IN_REQUEST)))
.after(addResponseHeader("Location", "https://backend.org:443/v1/some/object/id"))
.build();
// @formatter:on