You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/spring-cloud-function/standalone-web-applications.adoc
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,11 @@ This will only export function `foo` and function `bar` regardless how many func
98
98
99
99
This will only export function composition `foo|bar` and function `baz` regardless how many functions are available in catalog (e.g., `localhost:8080/foo,bar`).
100
100
101
+
== Http Headers propagation
102
+
103
+
By default most request `HttpHeaders` are copied into the response `HttpHeaders`. If you require to filter out certain headers you can provide the names of those headers using
104
+
`spring.cloud.function.http.ignored-headers` delimited by comas. For example, `spring.cloud.function.http.ignored-headers=foo,bar`
Copy file name to clipboardExpand all lines: spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/FunctionHttpProperties.java
Copy file name to clipboardExpand all lines: spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/flux/FunctionController.java
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ public Mono<ResponseEntity<?>> form(ServerWebExchange request) {
65
65
if (FunctionWebRequestProcessingHelper.isFunctionValidForMethod("POST", wrapper.getFunction().getFunctionDefinition(), this.functionHttpProperties)) {
@@ -124,7 +127,8 @@ public Mono<ResponseEntity<?>> delete(ServerWebExchange request,
124
127
@RequestBody(required = false) Stringbody) {
125
128
FunctionWrapperwrapper = wrapper(request);
126
129
if (FunctionWebRequestProcessingHelper.isFunctionValidForMethod("DELETE", wrapper.getFunction().getFunctionDefinition(), this.functionHttpProperties)) {
Copy file name to clipboardExpand all lines: spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/function/FunctionEndpointInitializer.java
Copy file name to clipboardExpand all lines: spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/mvc/FunctionController.java
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,8 @@ public Object form(WebRequest request) {
@@ -161,7 +166,8 @@ public void delete(WebRequest request, @RequestBody(required = false) String bod
161
166
FunctionWrapperwrapper = wrapper(request);
162
167
if (FunctionWebRequestProcessingHelper.isFunctionValidForMethod("DELETE", wrapper.getFunction().getFunctionDefinition(), this.functionHttpProperties)) {
163
168
Assert.isTrue(wrapper.getFunction().isConsumer(), "'DELETE' can only be mapped to Consumer");
Copy file name to clipboardExpand all lines: spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/source/FunctionExporterAutoConfiguration.java
0 commit comments