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

6
LINES

< > BotCompany Repo | #1014040 // currentHTTPD

JavaX fragment (include)

1  
static NanoHTTPD currentHTTPD() {
2  
  O httpd = getThreadLocal((ThreadLocal) getOpt(mc(), "MyHTTPD_current"));
3  
  if (httpd == null)
4  
    httpd = getThreadLocal((ThreadLocal) getOpt(mc(), "WebSocketHTTPD_current"));
5  
  ret httpd;
6  
}

Author comment

Began life as a copy of #1013831

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014040
Snippet name: currentHTTPD
Eternal ID of this version: #1014040/1
Text MD5: ba5693c96f98d90a7cca81b269e78ddb
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-25 14:11:30
Source code size: 231 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 398 / 423
Referenced in: [show references]