You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Readme.md
+1
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ $ npm install koa-send
22
22
-`hidden` Allow transfer of hidden files. (defaults to `false`)
23
23
-[`root`](#root-path) Root directory to restrict file access
24
24
-`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.
25
+
-`brotli` Try to serve the brotli version of a file automatically when `brotli` is supported by a client and if the requested file with `.br` extension exists. defaults to true.
25
26
-`format` If not `false` (defaults to `true`), format the path to serve static file servers and not require a trailing slash for directories, so that you can do both `/directory` and `/directory/`
26
27
-[`setHeaders`](#setheaders) Function to set custom headers on response.
27
28
-`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`)
0 commit comments