<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-requests.git/requests/hooks.py, branch cache</title>
<subtitle>github.com: kennethreitz/requests.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/'/>
<entry>
<title>Allowing hooks to return responses that indicate errors</title>
<updated>2012-06-01T20:05:22+00:00</updated>
<author>
<name>Michael Komitee</name>
<email>komitee@deshaw.com</email>
</author>
<published>2012-06-01T19:53:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=662c3edacc76d6a0e7b55b569c9fea38f8b0bc78'/>
<id>662c3edacc76d6a0e7b55b569c9fea38f8b0bc78</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>pre-send hook</title>
<updated>2012-05-02T23:09:18+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-05-02T23:09:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=8ac6b266c923ee64680828fa288674667f070519'/>
<id>8ac6b266c923ee64680828fa288674667f070519</id>
<content type='text'>
#516</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
#516</pre>
</div>
</content>
</entry>
<entry>
<title>make list of HOOKS available</title>
<updated>2012-01-21T12:07:18+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-01-21T12:07:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=e9be7c1a58ff31b04633526c425714b272b457e8'/>
<id>e9be7c1a58ff31b04633526c425714b272b457e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Facilitate for multiple hooks</title>
<updated>2012-01-21T11:14:55+00:00</updated>
<author>
<name>Johannes Gorset</name>
<email>jgorset@gmail.com</email>
</author>
<published>2012-01-21T11:05:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=7647e52943ad15da6bc7e52df3dfb744aa949bf8'/>
<id>7647e52943ad15da6bc7e52df3dfb744aa949bf8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Printing the entire traceback, instead of just a warning, when an exception is encountered</title>
<updated>2012-01-10T10:10:58+00:00</updated>
<author>
<name>Lucian Ursu</name>
<email>lucian.ursu@gmail.com</email>
</author>
<published>2012-01-10T10:10:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=86eba21b8ae7ed3772f5706e1c5799efc127342b'/>
<id>86eba21b8ae7ed3772f5706e1c5799efc127342b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title> Some Doc and doctoring fixes by the Speling Poleece.</title>
<updated>2011-10-19T15:00:13+00:00</updated>
<author>
<name>travis</name>
<email>travis@vaught.net</email>
</author>
<published>2011-10-19T15:00:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=055f7c1eb6172736e830120532934077ee87c102'/>
<id>055f7c1eb6172736e830120532934077ee87c102</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>whitespace</title>
<updated>2011-08-17T04:40:37+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2011-08-17T04:40:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=855c27370790c0ba781d20f776a907fa5e2995ae'/>
<id>855c27370790c0ba781d20f776a907fa5e2995ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>docstrings</title>
<updated>2011-08-17T04:33:21+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2011-08-17T04:33:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=2a0eff9c7130371874a07ec74806cc703ebad2cc'/>
<id>2a0eff9c7130371874a07ec74806cc703ebad2cc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>pre_request hook</title>
<updated>2011-08-17T04:28:03+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2011-08-17T04:27:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=3e8a14e133d8c2dc35a76e0a2a2ae3151c171c26'/>
<id>3e8a14e133d8c2dc35a76e0a2a2ae3151c171c26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hook plans</title>
<updated>2011-08-17T04:16:57+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2011-08-17T04:16:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-requests.git/commit/?id=5ba43d0fe5ff5b1705e94ae1b7f2abfe744c56d4'/>
<id>5ba43d0fe5ff5b1705e94ae1b7f2abfe744c56d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
