We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f5989 commit 1373587Copy full SHA for 1373587
README.md
@@ -78,7 +78,13 @@ Redirect to trailing "/" when the pathname is a dir. Defaults to `true`.
78
79
##### setHeaders
80
81
-Function to set custom headers on response.
+Function to set custom headers on response. Alterations to the headers need to
82
+occur synchronously. The function is called as `fn(res, path, stat)`, where
83
+the arguments are:
84
+
85
+ - `res` the response object
86
+ - `path` the file path that is being sent
87
+ - `stat` the stat object of the file that is being sent
88
89
## Examples
90
0 commit comments