]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix function name in event hooks docs (#1290)
authorStephen Brown II <Stephen.Brown2@gmail.com>
Wed, 16 Sep 2020 01:45:20 +0000 (19:45 -0600)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 01:45:20 +0000 (09:45 +0800)
docs/advanced.md

index f374d0c93abd5fea397138b942fa1fdf9286dc9a..9fa3a35ee1c35f93beb1ea533ed4292fc81dac4f 100644 (file)
@@ -265,7 +265,7 @@ the installed hooks.
 ```python
 client = httpx.Client()
 client.event_hooks['request'] = [log_request]
-client.event_hooks['response'] = [log_response, raise_for_status]
+client.event_hooks['response'] = [log_response, raise_on_4xx_5xx]
 ```
 
 !!! note