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).

!7

p {
  serveHttp(6688);
  autoRestart();
}

static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method,
  Map<S,S> header, Map<S,S> parms, Map<S,S> files) {
  print("Serving HTML.");
  ret serveHTML(
      htitle("Yo yo yo")
    + "Find me at " + ahref("http://home.botcompany.de", "home.botcompany.de") + "!");
}

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: 491 / 7353
Version history: 3 change(s)
Referenced in: