-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement
Description
MediaTypeServerWebExchangeMatcher
is very easy to use because it simply takes a list of MediaType
s in its constructor:
public MediaTypeServerWebExchangeMatcher(MediaType... mediaTypes) {
// ...
}
However, MediaTypeRequestMatcher
, the servlet equivalent, requires the user to supply a ContentNegotiationStrategy
as well:
public MediaTypeRequestMatcher(ContentNegotiationStrategy contentNegotiationStrategy,
MediaType... mediaTypes) {
// ...
}
It would be nice if MediaTypeRequestMatcher
were as easy to use as MediaTypeServerWebExchangeMatcher
.
Metadata
Metadata
Assignees
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: enhancementA general enhancementA general enhancement