How to set an HttpRequest in ServerRequestContext in Micronaut 4 #9606
Unanswered
francesco-monorchio
asked this question in
General
Replies: 1 comment 3 replies
-
you need to use it like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
In Micronaut 3 I had a Spock Extension that set a mock request in the ServerRequestContext using ServerRequestContext.set() method. From Micronaut 4 the set method does not exist anymore and using ServerRequestContext.with(request, Thread.currentThread) does not work as expected. Is there a way to do this in another way?
Thanks,
Frank
Beta Was this translation helpful? Give feedback.
All reactions