r.send()
- # Post-request hook.
- r = dispatch_hook('post_request', r.hooks, r)
-
- # Response manipulation hook.
- r.response = dispatch_hook('response', r.hooks, r.response)
-
return r.response
args[attr] = merge_kwargs(local_val, session_val)
- # Arguments manipulation hook.
- args = dispatch_hook('args', hooks, args)
-
r = Request(**args)
- # Pre-request hook.
- r = dispatch_hook('pre_request', hooks, r)
-
# Don't send if asked nicely.
if not return_response:
return r
# Send the HTTP Request.
r.send()
- # Post-request hook.
- r = dispatch_hook('post_request', hooks, r)
-
- # Response manipulation hook.
- r.response = dispatch_hook('response', hooks, r.response)
-
return r.response