Any way to add context data to HttpServerRequest?

16 views
Skip to first unread message

jim-g...@spudsoft.co.uk

unread,
Aug 7, 2025, 2:43:18 AMAug 7
to vert.x
Hi,
Currently, HttpServerRequest provides no way to store additional context.
I think that in most cases this is fine, those that want more fancy facilities can use vertx-web and add context data to the RoutingContext.
However resteasy-vertx works with plain Vert.x HTTP and RoutingContext is not an option.
The thread handling of the Vert.x and Resteasy makes it very difficult to transfer contextual data from one side to the other.
If the HttpServerRequest had any way to store contextual information this would go from being almost impossible to being really easy.
Jim

Julien Viet

unread,
Aug 22, 2025, 8:35:46 AMAug 22
to ve...@googlegroups.com
Hi,

you can use Vert.x context local data that can be stored with an vertx
context having a lifecycle of the HTTP server request.

Julien
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
> To view this discussion, visit https://groups.google.com/d/msgid/vertx/8ae1c70f-5ee0-44ae-be66-d82e784a4115n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages