]> khamidou — GitHub mirrors - vcrpy.git/commit
Add support for calling httplib.send().
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 15 Sep 2013 20:47:24 +0000 (10:47 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Mon, 16 Sep 2013 04:43:02 +0000 (18:43 -1000)
commit5ce67dc023711a39920542cd6001531c4f3dfdd0
treeef6249e4ac04f3db912cc8f74fc33528503f9e25
parent07774ae6dd2dac64c7e4e365ab7e9df0f47b3d62
Add support for calling httplib.send().

This commit changes the whole core internal flow of requests.
Now, requests are actually physically made lazily when a response
is requested.  This allows the entire request to be sent at once.

Otherwise, it would be impossible to compare whether requests have
already been recorded, since httplib.send() allows you to effectively
stream requests over HTTP.
tests/integration/test_requests.py
tests/integration/test_wild.py
vcr/patch.py
vcr/stubs/__init__.py