Libraryless. Click here for Pure Java version (4948L/35K).
// returns port number static int serveHttpIfMain() { if (isMain()) ret serveHttp(); ret 0; } // returns port number static int serveHttpIfMain(int port) { if (isMain()) ret serveHttp(port); ret 0; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027703 |
| Snippet name: | serveHttpIfMain |
| Eternal ID of this version: | #1027703/2 |
| Text MD5: | 83777fd55c115aa0ddb84ded415da96b |
| Transpilation MD5: | 726c47b47a9d8a86c26fe926e870b9cb |
| Author: | stefan |
| Category: | javax / http |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-02 19:04:02 |
| Source code size: | 218 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 357 / 481 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |