From 33e53373950315042ee6f15bde53b3e6b94767cd Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Fri, 23 Jan 2026 10:56:07 +0100 Subject: [PATCH] docs: fix post_request hook signature description The description incorrectly stated the callable accepts two parameters (Worker and Request), but the signature shows four parameters including environ and resp. Closes #2592 --- gunicorn/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 01f8a837..15b72bd1 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -1947,7 +1947,8 @@ class PostRequest(Setting): Called after a worker processes the request. The callable needs to accept two instance variables for the Worker and - the Request. + the Request. If a third parameter is defined it will be passed the + environment. If a fourth parameter is defined it will be passed the Response. """