Provide a way to send query strings using `QueryParams` with `WebClient`
See original GitHub issueWhen sending query strings in a path using WebClient, users have to manually concatenate query params. For example:
WebClient client = ...;
QueryParams params = QueryParams.of("foo", "bar");
client.get("/foo?" + params.toQueryString());
It would be convenient to automatically append the query parameters to the path.
client.get("/foo", params);
client.post("/bar", params, content);
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Spring WebClient Requests with Parameters - Baeldung
The queryParam() method accepts variable arguments as values, so there's no need to call the method several times. Alternatively, we can omit ...
Read more >Add query parameter in WebClient request - Stack Overflow
You can add the query parameters using lambda expression in uri, for more information see WebClient.UriSpec return WebClient.create(this.
Read more >Add URI Parameters to Spring WebClient Requests - amitph
The Request URI parameters help identify particular resources on the server, specify certain filters on the response, or pass some information to the...
Read more >Passing query parameters through your WebClient - Medium
In this approach we are going to leverage the `queryParams()` method of the UriBuilder class found in `package org.springframework.web.util;`.
Read more >How to Set Request Parameters With WebClient
Sometimes you need to send REST requests with query parameters from a Spring Boot application context. Fortunately, you can easily do that with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey @ikhoon, new contributor here! Could I take a stab at this?
You may want to fork our repository to your account and send a pull request.