Hugo Osvaldo Barrera
89ab030cdb
Use comprehensions whenever possible
2018-10-16 20:34:22 -07:00
kennethreitz
fb01456061
Merge pull request #3429 from nateprewitt/docstring_cleanup
...
Docstring cleanup
2016-07-20 18:38:38 -04:00
Nate Prewitt
2d4a89f5dc
adding in pep8 fixes
2016-07-20 10:30:08 -06:00
Nate Prewitt
15a3869006
making module docstrings and coding comments consistent
2016-07-19 14:51:14 -06:00
ueg1990
649aeaa489
Removed unused module from hooks.py
2015-09-13 06:36:39 -04:00
ueg1990
c5a41269d9
Some pythonic suggestions for requests/hooks.py
2015-09-12 20:43:25 -04:00
Michael Komitee
d0285fac42
Use user supplied options when resending authenticated requests
...
Hooks sometimes have to send requests (e.g. when responding to a 401 during
authentication).
All keyword arguments should be passed along when hooks are dispatched so that
if a user wanted to use a timeout, stream, specify a cert location with the
verify flag, etc, their specification can be followed.
2013-02-13 19:11:38 -05:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Kenneth Reitz
377078b0f5
hooks and things
2012-12-17 04:31:26 -05:00
Kenneth Reitz
03c8e23dbb
response
2012-12-17 03:56:58 -05:00
Kenneth Reitz
ee6c638e9c
hmmm
2012-12-17 03:51:23 -05:00
Radu Voicilas
820dfb0495
Making the code more PEP8 compliant
2012-10-09 00:42:49 +03:00
Kenneth Reitz
ab57c076e3
Merge pull request #811 from lucian1900/develop
...
Remove exception eating from dispatch_hook.
2012-08-25 08:06:56 -07:00
Locker537
42d0a2169e
Whitespace fixes following PEP8.
2012-08-16 17:38:35 -04:00
Lucian Branescu Mihaila
57b4d39749
Remove exception eating from dispatch_hook.
2012-08-16 17:49:00 +02:00
Michael Komitee
662c3edacc
Allowing hooks to return responses that indicate errors
...
Since response objects for failures (4xx/5xx responses) evaluate to False
in a boolean context, any hook which returns such a failure response will
evaluate to False.
The way hooks were setup, any failure response resulting from a hook would
be ignored, and the initial response before it got processed by the hook
would be substituted in its place. This commit changes that logic to test
for None so that hooks that return failures can do so.
2012-06-01 16:05:22 -04:00
Kenneth Reitz
8ac6b266c9
pre-send hook
...
#516
2012-05-02 19:09:18 -04:00
Kenneth Reitz
e9be7c1a58
make list of HOOKS available
2012-01-21 07:07:18 -05:00
Johannes Gorset
7647e52943
Facilitate for multiple hooks
2012-01-21 12:14:55 +01:00
Lucian Ursu
86eba21b8a
Printing the entire traceback, instead of just a warning, when an exception is encountered
2012-01-10 12:10:58 +02:00
travis
055f7c1eb6
Some Doc and doctoring fixes by the Speling Poleece.
2011-10-19 10:00:13 -05:00
Kenneth Reitz
855c273707
whitespace
2011-08-17 00:40:37 -04:00
Kenneth Reitz
2a0eff9c71
docstrings
2011-08-17 00:33:21 -04:00
Kenneth Reitz
3e8a14e133
pre_request hook
2011-08-17 00:28:03 -04:00
Kenneth Reitz
5ba43d0fe5
hook plans
2011-08-17 00:16:57 -04:00
Kenneth Reitz
d0cb56932c
new hooks system
...
#118
2011-08-16 23:57:44 -04:00