Skip to content

Commit 26f79fe

Browse files
author
David Douglas
committedNov 8, 2017
Added ability to set multiple query params
1 parent c07b8b2 commit 26f79fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎http/RestRequest.cs

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ public virtual void AddQueryParam(string key, string value, bool shouldUpdateReq
6868
}
6969
}
7070

71+
public void SetQueryParams(QueryParams queryParams) {
72+
if (this.queryParams != null) {
73+
Debug.LogWarning("Replacing previous query params");
74+
}
75+
this.queryParams = queryParams;
76+
}
77+
7178
public virtual void UpdateRequestUrl() {
7279
if (queryParams == null) {
7380
return;

0 commit comments

Comments
 (0)
Failed to load comments.