provide .queryParam(String name, Collection<?> items)
to provide multiValued query parameters
#23114
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Uh oh!
There was an error while loading. Please reload this page.
When using the
UrlBuilder
(via theWebClient
) you can pass a collection as the query parameter value like:This doesn't generate the expected 'multivalued' query param (ie
?items=dogs&items=cats
or?items=dogs,cats
).It would be good if it were possible to do something like this.
NOTE:
.queryParam(String name, Object... varargs)
does solve this problem, but having 1st class collection support would be much nicer than shimming things to work with this (or usingStringUtils.collectionToDelimitedString(List.of("dogs", "cats"), ",")
).The text was updated successfully, but these errors were encountered: