Libraryless. Click here for Pure Java version (3899L/22K).
1 | sO serveTextOrHTML(File f) { |
2 | if (!fileExists(f)) |
3 | ret subBot_serve404(); |
4 | if (hasExtension(f, ".txt")) |
5 | ret subBot_serveText(f); |
6 | else |
7 | ret subBot_serveHTMLFile(f); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032566 |
Snippet name: | serveTextOrHTML - or 404 |
Eternal ID of this version: | #1032566/1 |
Text MD5: | 86be03f50cafd58a3bc81279bf35f471 |
Transpilation MD5: | 3823f2369dbc121af815a902a546729e |
Author: | stefan |
Category: | javax / http |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-22 23:59:44 |
Source code size: | 188 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 210 |
Referenced in: | [show references] |