ifdef NoNanoHTTPD static virtual NanoHTTPD.Response serveByteArray(byte[] data, S mimeType) { ret subBot_serveByteArray(data, mimeType); } endifdef ifndef NoNanoHTTPD static NanoHTTPD.Response serveByteArray(byte[] data, S mimeType) ctex { ret NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Status.OK, mimeType, new ByteArrayInputStream(data), l(data)); } endifndef
Began life as a copy of #1003197
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1007545 |
| Snippet name: | serveByteArray - serve a byte array with a specific content type within serveHttp |
| Eternal ID of this version: | #1007545/5 |
| Text MD5: | bdb199c77efaec83131f66665aca5640 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-14 14:03:32 |
| Source code size: | 376 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 821 / 844 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |