From 528c377c4c5eddab46fdfcde6a6c79f219ba77ca Mon Sep 17 00:00:00 2001 From: cpzt Date: Wed, 17 May 2023 20:07:40 +0800 Subject: [PATCH] add docstring parameter `hooks` --- requests/sessions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requests/sessions.py b/requests/sessions.py index 6cb3b4dae3..9dcaf3b56b 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -543,6 +543,8 @@ def request( :type allow_redirects: bool :param proxies: (optional) Dictionary mapping protocol or protocol and hostname to the URL of the proxy. + :param hooks: (optional) Dictionary mapping hook name to one event or + list of events, event must be callable. :param stream: (optional) whether to immediately download the response content. Defaults to ``False``. :param verify: (optional) Either a boolean, in which case it controls whether we verify