Skip to content

Commit 7061f4c

Browse files
committed
final thing, query param method
1 parent b986771 commit 7061f4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

http-client/src/main/java/io/avaje/http/client/HttpClientRequest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ public interface HttpClientRequest {
237237
*/
238238
HttpClientRequest queryParam(String name, Object value);
239239

240+
/**
241+
* Add a collection query parameters associated with a single key
242+
*
243+
* @param name The name of the query parameter
244+
* @param values The values of the query parameter which can be null
245+
* @return The request being built
246+
*/
247+
default HttpClientRequest queryParam(String name, Collection<Object> value) {
248+
return queryParam(name, (Object) value);
249+
}
250+
240251
/**
241252
* Add a multiple query parameters as name value map.
242253
*

0 commit comments

Comments
 (0)