send
send copied to clipboard
Transfer static files
## Describe the bug using this example code: await send(ctx, ctx.path, { root: __dirname + '/public' }); If the file is not found, the promise never resolves. This is a...
When I enter: ```sh npm i @koa/send ``` I see: ```sh npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@koa%2fsend - Not found npm ERR! 404 npm...
## Why Hello, when I started a koa server and sent a template HTML to the client, the server showed an error "failed to decode BadRequestError: failed to decode" which...
Extended `format` option from `( *true | false )` to `( *'follow' | 'redirect' | false )`. `'follow'` behaves the same as the old `true`, and keep as default. `'redirect'`...
Are there plans to add byte-range support to this? Similar to the [send](/pillarjs/send) module that express uses?
This is essentially the same bug as https://github.com/koajs/send/issues/79 but the fix employed doesn't work if the actual filename includes a dot. The issue is with this line: https://github.com/koajs/send/blob/master/index.js#L100 From looking...
I think most people are used to using " Koa Response" in koa or not "Node Response". Just like use ctx.response.set('Cache-Control', 'max-age=0') or not ctx.res.setHeader(...). Because Koa officially states [Bypassing...
Hi, why not also support deflate encoding, let's say that I have a file ending with .zz instead of .br and .gz and if the accept encodings permit I'd like...
When serving compressed content, `send` should set `Vary: Accept-Encoding` automatically to ensure that CDNs cache according to the client's encoding.