We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
The method below disallows (only) GET requests rather than allows them (as claimed in the comment):
import java.util.Optional; class Filters { @ServerRequestFilter public Optional<RestResponse<Void>> getFilter(ContainerRequestContext ctx) { // only allow GET methods for now if(ctx.getMethod().equals(HttpMethod.GET)) { return Optional.of(RestResponse.status(Response.Status.METHOD_NOT_ALLOWED)); } return Optional.empty(); } }
Which pages
https://quarkus.io/guides/rest#request-or-response-filters
The text was updated successfully, but these errors were encountered:
add missing ! to fix quarkusio#40195
c89c096
thanks for noticing. opened #40476 to fix this.
Sorry, something went wrong.
c6fe0af
(cherry picked from commit c89c096)
3b4b6d1
Successfully merging a pull request may close this issue.
Describe the bug
The method below disallows (only) GET requests rather than allows them (as claimed in the comment):
Which pages
https://quarkus.io/guides/rest#request-or-response-filters
The text was updated successfully, but these errors were encountered: