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

5
LINES

< > BotCompany Repo | #1004041 // addHTTP

JavaX fragment (include)

1  
static S addHTTP(S url) {
2  
  if (url.indexOf("://") < 0)
3  
    url = "http://" + url;
4  
  ret url;
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004041
Snippet name: addHTTP
Eternal ID of this version: #1004041/1
Text MD5: b19f65582c8384995513a682ff2a6b97
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-04 16:12:17
Source code size: 99 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 407 / 417
Referenced in: [show references]