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

16
LINES

< > BotCompany Repo | #755 // HTTP Proxy (developing)

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

Libraryless. Click here for Pure Java version (2512L/19K/50K).

!747

m {
  p {
    serveHttp(7777);
  }
  
  static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method,
    Map<S,S> header, Map<S,S> parms, Map<S,S> files) {
    print("Header: " + structure(header));
    print("URI: " + uri);
    print("Parms: " + structure(parms));
    print("Files: " + structure(files));
    ret serveHTML("implementing...");
  }
}

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, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #755
Snippet name: HTTP Proxy (developing)
Eternal ID of this version: #755/1
Text MD5: ce220d214372f07a5406dcc959169752
Transpilation MD5: 02927b1dce21557743b1d0de50cc98f7
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-28 19:09:49
Source code size: 374 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 620 / 641
Referenced in: [show references]