Skip to content

Commit d8be914

Browse files
author
haoxin
authoredNov 13, 2017
docs: add option - setHeaders
closes #95
1 parent e663be6 commit d8be914

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎Readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ app.use(require('koa-static')(root, opts));
3333
- `index` Default file name, defaults to 'index.html'
3434
- `defer` If true, serves after `return next()`, allowing any downstream middleware to respond first.
3535
- `gzip` Try to serve the gzipped version of a file automatically when gzip is supported by a client and if the requested file with .gz extension exists. defaults to true.
36+
- [setHeaders](https://github.com/koajs/send#setheaders) Function to set custom headers on response.
3637
- `extensions` Try to match extensions from passed array to search for file when no extension is sufficed in URL. First found is served. (defaults to `false`)
3738

3839
## Example

0 commit comments

Comments
 (0)
Please sign in to comment.