Add WebSocketInterceptor

See gh-162
This commit is contained in:
Rossen Stoyanchev
2021-10-20 21:21:31 +01:00
parent 811d32b647
commit 20bae75ed8
23 changed files with 361 additions and 70 deletions

View File

@@ -199,7 +199,7 @@ class GraphQlWebFluxAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (input, next) -> next.handle(input).map((output) ->
return (webInput, interceptorChain) -> interceptorChain.next(webInput).map((output) ->
output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
}

View File

@@ -187,7 +187,7 @@ class GraphQlWebMvcAutoConfigurationTests {
@Bean
WebInterceptor customWebInterceptor() {
return (input, next) -> next.handle(input).map((output) ->
return (webInput, interceptorChain) -> interceptorChain.next(webInput).map((output) ->
output.transform((builder) -> builder.responseHeader("X-Custom-Header", "42")));
}