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
MediaTypeServerWebExchangeMatcher is very easy to use because it simply takes a list of MediaTypes in its constructor:
MediaTypeServerWebExchangeMatcher
MediaType
public MediaTypeServerWebExchangeMatcher(MediaType... mediaTypes) { // ... }
However, MediaTypeRequestMatcher, the servlet equivalent, requires the user to supply a ContentNegotiationStrategy as well:
MediaTypeRequestMatcher
ContentNegotiationStrategy
public MediaTypeRequestMatcher(ContentNegotiationStrategy contentNegotiationStrategy, MediaType... mediaTypes) { // ... }
It would be nice if MediaTypeRequestMatcher were as easy to use as MediaTypeServerWebExchangeMatcher.
The text was updated successfully, but these errors were encountered:
@jzheaux are you working on this issue?if not, i think i can provide a PR 😁😁
Sorry, something went wrong.
It's yours, @clevertension. Note that I'll assign it to myself, just so I can keep track of it now that it's being worked on.
@jzheaux so the ContentNegotiationStrategy contentNegotiationStrategy can be null now?
ContentNegotiationStrategy contentNegotiationStrategy
@clevertension I was thinking that the class could default to a HeaderContentNegotiationStrategy. See the JavaDoc for some common usages.
HeaderContentNegotiationStrategy
a9a86cd
jzheaux
No branches or pull requests
MediaTypeServerWebExchangeMatcher
is very easy to use because it simply takes a list ofMediaType
s in its constructor:However,
MediaTypeRequestMatcher
, the servlet equivalent, requires the user to supply aContentNegotiationStrategy
as well:It would be nice if
MediaTypeRequestMatcher
were as easy to use asMediaTypeServerWebExchangeMatcher
.The text was updated successfully, but these errors were encountered: