(data: any, name?: string)
| 233 | } |
| 234 | |
| 235 | binary(data: any, name?: string) { |
| 236 | this.response.body = data; |
| 237 | this.response.template = null; |
| 238 | this.response.type = 'application/octet-stream'; |
| 239 | if (name) this.response.disposition = `attachment; filename="${encodeRFC5987ValueChars(name)}"`; |
| 240 | } |
| 241 | |
| 242 | holdFile(name: string | File) { |
| 243 | this.context.holdFiles.push(name); |