aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-04 23:39:04 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-04 23:39:04 +0100
commite7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb (patch)
tree95574b22aad6ec370875115dd28b227586b5ebd2 /readme.md
parent10dba4e7c79e622249cf4539cff3347619e15059 (diff)
downloadgnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar
gnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar.bz2
gnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar.zst
improve headers module (breaking change)
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index f241d66..507ca34 100644
--- a/readme.md
+++ b/readme.md
@@ -199,8 +199,11 @@ themselves; in that case the request is passed on.
- **module `headers`**
- Appends multiple headers to the response.
- - `headers`: A map of all header name-value pairs. (object string:string)
- - `inner`: The handler to add the headers to. (module)
+ - `request`: A map of all header name-value pairs added before the request is
+ passed to `next`. (object string:string)
+ - `response`: A map headers added to responsed from `next`. (object
+ string:string)
+ - `next`: The handler to add the headers to. (module)
- **module `redirect`**
- Responds with a permanent redirect.