diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-04 23:39:04 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-04 23:39:04 +0100 |
commit | e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb (patch) | |
tree | 95574b22aad6ec370875115dd28b227586b5ebd2 /readme.md | |
parent | 10dba4e7c79e622249cf4539cff3347619e15059 (diff) | |
download | gnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar gnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar.bz2 gnix-e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb.tar.zst |
improve headers module (breaking change)
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. |