// function: func(S uri, SS params) -> NanoHTTPD.Response or string static MyHTTPD serveHttpFromFunction(int port, O function) ctex { MyHTTPD server = new(port); server.serveFunction = function; server.start(); print("HTTP port " + port + " open"); ret server; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023279 |
| Snippet name: | serveHttpFromFunction |
| Eternal ID of this version: | #1023279/8 |
| Text MD5: | 7965ffafefb5f322463bf69a3415afcc |
| Author: | stefan |
| Category: | javax / http |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-16 19:13:53 |
| Source code size: | 279 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 503 / 582 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |