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

8
LINES

< > BotCompany Repo | #1032397 // addFilenameHeader

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3120L) is out of date.

static virtual NanoHTTPD.Response addFilenameHeader(virtual NanoHTTPD.Response r, S name) {
  call(r, "addHeader", "Content-Disposition", "inline; filename=\"" + name + "\""); // todo: encode special characters
  ret r;
}

static virtual NanoHTTPD.Response addFilenameHeader(S name, virtual NanoHTTPD.Response r) {
  ret addFilenameHeader(r, name);
}

Author comment

Began life as a copy of #1013807

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032397
Snippet name: addFilenameHeader
Eternal ID of this version: #1032397/2
Text MD5: afb76b6479b95c0fbbffa397e0748a57
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-02 16:33:09
Source code size: 353 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 215
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030949 - Transpiler output of #1031393