From e7dc02a0c86c9f0b5d25dff5d20fe53cdbe671cb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 4 Mar 2025 23:39:04 +0100 Subject: improve headers module (breaking change) --- readme.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'readme.md') 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. -- cgit v1.2.3-70-g09d2