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

7
LINES

< > BotCompany Repo | #1028762 // Serve Directory Web Bot

JavaX source code (desktop) [tags: butter use-pretranspiled] - run with: x30.jar - homepage

Download Jar. Libraryless. Click here for Pure Java version (3221L/20K).

1  
!7
2  
3  
!include once #1028763 // helper for HttpFromFileSystem
4  
5  
sO html(S uri, SS params) {
6  
  ret new HttpFromFileSystem(mkdirs(javaxDataDir("htdocs"))).serve(uri);
7  
}

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: #1028762
Snippet name: Serve Directory Web Bot
Eternal ID of this version: #1028762/3
Text MD5: 13917eef981abe5aa90d9468832a100c
Transpilation MD5: 7247fad2a574ad488233a2d98507d55c
Author: stefan
Category: javax / parsing
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-07 18:24:28
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 1011
Version history: 2 change(s)
Referenced in: [show references]