Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1030917 // appendQueryToURL [backup]

JavaX fragment (include)

static S appendQueryToURL(S url, Map params) {
  if (url == null) null;
  S data = makePostData(params);
  ret empty(data) ? url : url + (url.contains("?") ? "&" : "?") + data;
}

static S appendQueryToURL(S url, O... data) {
  ret appendQueryToURL(url, litmap(data));
}

Author comment

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: 126 / 155
Referenced in: [show references]