From: Stephen Brown II Date: Wed, 16 Sep 2020 01:45:20 +0000 (-0600) Subject: Fix function name in event hooks docs (#1290) X-Git-Tag: 0.15.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a394df59da5fc9c6113db9fc417b7ad334d5c682;p=thirdparty%2Fhttpx.git Fix function name in event hooks docs (#1290) --- diff --git a/docs/advanced.md b/docs/advanced.md index f374d0c9..9fa3a35e 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -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