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
If this is not possible, is there another way to inject the HttpServletResponse? I tried using the @context above the @path, but the HttpServletResponse always returns null. Here is a snippet of what I tried:
Hi @scottwinkler, at the moment we only have a Factory implementation for the request and context objects. I can definitely look at adding one for the servlet response. I'll mark this issue as an enhancement and look into it in the next few days.
From the docs, I can inject an HttpServletRequest using the following:
And I can access the HttpServletRequest using:
However, I have not found a way to inject the HttpServletResponse. It would be nice to bind a factory method like:
So that I can access the HttpServletResponse using the @context object, e.g. something like:
If this is not possible, is there another way to inject the HttpServletResponse? I tried using the @context above the @path, but the HttpServletResponse always returns null. Here is a snippet of what I tried:
The text was updated successfully, but these errors were encountered: