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

11
LINES

< > BotCompany Repo | #1029871 // serveInputStream

JavaX fragment (include)

1  
ifdef NoNanoHTTPD
2  
static virtual NanoHTTPD.Response serveInputStream(InputStream in, S mimeType) {
3  
  ret subBot_serveInputStream(in, mimeType);
4  
}
5  
endifdef
6  
7  
ifndef NoNanoHTTPD
8  
static NanoHTTPD.Response serveInputStream(InputStream in, S mimeType) ctex {
9  
  ret NanoHTTPD.newChunkedResponse(NanoHTTPD.Status.OK, mimeType, in);
10  
}
11  
endifndef

Author comment

Began life as a copy of #1007545

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029871
Snippet name: serveInputStream
Eternal ID of this version: #1029871/1
Text MD5: a7932e8fe633a5f16b7435df510f4cb5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-24 14:05:50
Source code size: 345 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 214
Referenced in: [show references]