1 | static NanoHTTPD.Response serveFile_maxCache(File file) { |
2 | ret serveFile(file, "application/octet-stream"); |
3 | } |
4 | |
5 | static NanoHTTPD.Response serveFile_maxCache(File file, S mimeType) ctex { |
6 | ret maxCacheHeaders(NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Status.OK, mimeType, new FileInputStream(file), file.length())); |
7 | } |
Began life as a copy of #1003197
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007563 |
Snippet name: | serveFile_maxCache - serve a file within serveHttp with maximum caching |
Eternal ID of this version: | #1007563/2 |
Text MD5: | 5dbf24a962bea32958aafcbeef70cb38 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-27 15:56:43 |
Source code size: | 324 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 461 / 508 |
Version history: | 1 change(s) |
Referenced in: | [show references] |