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
I picked up from this conversation and the docs that this option exists and was curious about the best solution to this. For now I am trying to access the Reactor Context's ServerWebExchange object to get the headers. This doesn't seem as the "right way" to go about this though.
The text was updated successfully, but these errors were encountered:
This makes a lot of sense now and also for the documentation. As far as I understand, Extensions are primarily used for response error handling and as such are not exposed to the Controller methods.
rstoyanchev
changed the title
Accessing Extensions from Controller method
Improve documentation samples on access to HTTP headers from controller
Apr 19, 2022
What would be the intended way to access request
extensions
(which we use to populate the Authorization header) set viaWebGraphQlInterceptor
(https://docs.spring.io/spring-graphql/docs/current-SNAPSHOT/reference/html/#web-interception) from inside a controller method?I picked up from this conversation and the docs that this option exists and was curious about the best solution to this. For now I am trying to access the Reactor
Context
'sServerWebExchange
object to get the headers. This doesn't seem as the "right way" to go about this though.The text was updated successfully, but these errors were encountered: