question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to send query strings using `QueryParams` with `WebClient`

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
nvidyalacommented, Nov 5, 2021

Hey @ikhoon, new contributor here! Could I take a stab at this?

1reaction
ikhooncommented, Nov 7, 2021

provide me with access to push my local branch?

You may want to fork our repository to your account and send a pull request.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found