Uses 911K of libraries. Click here for Pure Java version (2740L/14K).
1 | !7 |
2 | |
3 | !include once #1028763 // helper for HttpFromFileSystem |
4 | set flag NoNanoHTTPD. |
5 | |
6 | cmodule ServeDir > DynPrintLog { |
7 | !include #1029545 // API for Eleu |
8 | |
9 | switchable File dir; |
10 | |
11 | O html(virtual Request request) { |
12 | S uri = cast get(request, 'uri); |
13 | ret new HttpFromFileSystem(dir).serve(uri); |
14 | } |
15 | } |
Began life as a copy of #1029697
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029773 |
Snippet name: | HTTPFromFileSystem sub-bot |
Eternal ID of this version: | #1029773/5 |
Text MD5: | c42c6d6742632ee36a1b3188d1b12996 |
Transpilation MD5: | 7bdcb102010e695eb17bbfad20e4cf16 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-14 11:57:41 |
Source code size: | 319 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 5100 |
Version history: | 4 change(s) |
Referenced in: | [show references] |