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

13
LINES

< > BotCompany Repo | #1001813 // Serve HTTP on port 80

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

Libraryless. Click here for Pure Java version (2375L/18K/47K).

!747

m {
  p {
    serveHttp(80);
  }
  
  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("Hello world (as usual...)");
  }
}

Author comment

Began life as a copy of #1001649

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001813
Snippet name: Serve HTTP on port 80
Eternal ID of this version: #1001813/1
Text MD5: 558579be173dd45dd99cdca8a7f43757
Transpilation MD5: f6de502eacd1039997cfa6651db6dbb2
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-19 16:42:47
Source code size: 256 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 627 / 661
Referenced in: #3000382 - Answer for ferdie (>> t = 1, f = 0)