From fecf3dc472ddc78e20e96ea0b18e1589110c1d5e Mon Sep 17 00:00:00 2001 From: cpzt Date: Sun, 30 Jul 2023 09:01:42 +0800 Subject: [PATCH] add docstring parameter `hooks` (#6456) --- requests/sessions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requests/sessions.py b/requests/sessions.py index df35bfe2..2d1f8e71 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -545,6 +545,8 @@ class Session(SessionRedirectMixin): :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