1 | static S appendQueryToURL(S url, Map params) {
|
2 | if (url == null) null; |
3 | S data = makePostData(params); |
4 | ret empty(data) ? url : url + (url.contains("?") ? "&" : "?") + data;
|
5 | } |
6 | |
7 | static S appendQueryToURL(S url, O... data) {
|
8 | ret appendQueryToURL(url, litmap(data)); |
9 | } |
Began life as a copy of #1013971
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030917 |
| Snippet name: | appendQueryToURL [backup] |
| Eternal ID of this version: | #1030917/1 |
| Text MD5: | 8bf411deb846ee86883afa27e90a1cfb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-04-10 18:15:44 |
| Source code size: | 278 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 337 / 367 |
| Referenced in: | [show references] |