Add WebSocketInterceptor
See gh-162
This commit is contained in:
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user