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

15
LINES

< > BotCompany Repo | #1029773 // HTTPFromFileSystem sub-bot

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (2740L/14K).

!7

!include once #1028763 // helper for HttpFromFileSystem
set flag NoNanoHTTPD.

cmodule ServeDir > DynPrintLog {
  !include #1029545 // API for Eleu
  
  switchable File dir;

  O html(virtual Request request) {
    S uri = cast get(request, 'uri);
    ret new HttpFromFileSystem(dir).serve(uri);
  }
}

Author comment

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: 135 / 4997
Version history: 4 change(s)
Referenced in: [show references]