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

14
LINES

< > BotCompany Repo | #1010769 // Home Server (port 6688)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5405L/39K/121K).

1  
!7
2  
3  
p {
4  
  serveHttp(6688);
5  
  autoRestart();
6  
}
7  
8  
static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method,
9  
  Map<S,S> header, Map<S,S> parms, Map<S,S> files) {
10  
  print("Serving HTML.");
11  
  ret serveHTML(
12  
      htitle("Yo yo yo")
13  
    + "Find me at " + ahref("http://home.botcompany.de", "home.botcompany.de") + "!");
14  
}

Author comment

Began life as a copy of #1001649

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: #1010769
Snippet name: Home Server (port 6688)
Eternal ID of this version: #1010769/4
Text MD5: fc8cdd53d48c29cb567baf83760ec11a
Transpilation MD5: c587db5f2bcaaccf59a076f821c18014
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-01 21:58:53
Source code size: 335 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 7250
Version history: 3 change(s)
Referenced in: [show references]