<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-requests.git/requests/hooks.py, branch test2</title>
<subtitle>github.com: kennethreitz/requests.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/'/>
<entry>
<title>Use user supplied options when resending authenticated requests</title>
<updated>2013-02-14T00:11:38+00:00</updated>
<author>
<name>Michael Komitee</name>
<email>mkomitee@gmail.com</email>
</author>
<published>2013-02-14T00:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=d0285fac4203e8cfed6b5ceeb96b2646076e745d'/>
<id>d0285fac4203e8cfed6b5ceeb96b2646076e745d</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>it`s more pep8 now</title>
<updated>2013-01-27T01:04:12+00:00</updated>
<author>
<name>oczkers</name>
<email>oczkers@gmail.com</email>
</author>
<published>2013-01-27T01:04:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=40a060cf579a7f0996c92eed578148e526d9416f'/>
<id>40a060cf579a7f0996c92eed578148e526d9416f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hooks and things</title>
<updated>2012-12-17T09:31:26+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-12-17T09:31:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=377078b0f5cc5944756635f6e506d208b421b1e1'/>
<id>377078b0f5cc5944756635f6e506d208b421b1e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>response</title>
<updated>2012-12-17T08:56:58+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-12-17T08:56:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=03c8e23dbbc6690220141bb685fac08ac9494177'/>
<id>03c8e23dbbc6690220141bb685fac08ac9494177</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hmmm</title>
<updated>2012-12-17T08:51:23+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-12-17T08:51:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=ee6c638e9cfdbdf39b9e499d95c353460365f42c'/>
<id>ee6c638e9cfdbdf39b9e499d95c353460365f42c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Making the code more PEP8 compliant</title>
<updated>2012-10-08T21:42:49+00:00</updated>
<author>
<name>Radu Voicilas</name>
<email>radu.voicilas@gmail.com</email>
</author>
<published>2012-10-08T21:41:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=820dfb0495ef379f140ad3c78c30e0a16c7e9fa8'/>
<id>820dfb0495ef379f140ad3c78c30e0a16c7e9fa8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #811 from lucian1900/develop</title>
<updated>2012-08-25T15:06:56+00:00</updated>
<author>
<name>Kenneth Reitz</name>
<email>me@kennethreitz.com</email>
</author>
<published>2012-08-25T15:06:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=ab57c076e3be6e4ee2cc0ce7aaef46d06f68a254'/>
<id>ab57c076e3be6e4ee2cc0ce7aaef46d06f68a254</id>
<content type='text'>
Remove exception eating from dispatch_hook.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove exception eating from dispatch_hook.</pre>
</div>
</content>
</entry>
<entry>
<title>Whitespace fixes following PEP8.</title>
<updated>2012-08-16T21:38:35+00:00</updated>
<author>
<name>Locker537</name>
<email>locker537@gmail.com</email>
</author>
<published>2012-08-16T21:33:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=42d0a2169eb894df0fc3c3788925bfd107765597'/>
<id>42d0a2169eb894df0fc3c3788925bfd107765597</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove exception eating from dispatch_hook.</title>
<updated>2012-08-16T15:49:00+00:00</updated>
<author>
<name>Lucian Branescu Mihaila</name>
<email>lucian.branescu@gmail.com</email>
</author>
<published>2012-08-16T15:49:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-requests.git/commit/?id=57b4d39749021305a2d5850e642537224d30611f'/>
<id>57b4d39749021305a2d5850e642537224d30611f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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://git.baserock.org/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>
</feed>
