Skip to content

Improve documentation samples on access to HTTP headers from controller #350

@Flash1232

Description

@Flash1232

What would be the intended way to access request extensions (which we use to populate the Authorization header) set via WebGraphQlInterceptor (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's ServerWebExchange object to get the headers. This doesn't seem as the "right way" to go about this though.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions