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

1  
!747
2  
3  
m {
4  
  p {
5  
    serveHttp(80);
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("Hello world (as usual...)");
12  
  }
13  
}

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: 626 / 659
Referenced in: [show references]