Created
August 5, 2012 04:45
-
-
Save dreid/3261732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> if (('close' in connHeaders) or self._state != "QUIESCENT" or | |
(Pdb) connHeaders | |
['Close'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(treq)thomasina dreid:treq (master=)> trial treq.test.test_treq_integration.TreqIntegrationTests.test_post | |
treq.test.test_treq_integration | |
TreqIntegrationTests | |
test_post ... > /Users/dreid/code/treq/treq/test/test_treq_integration.py(75)test_post() | |
-> self.assertEqual(response.status_code, 200) | |
(Pdb) response | |
<treq.response.Response object at 0x1057cacd0> | |
(Pdb) response._response | |
<twisted.web._newclient.Response object at 0x1057cab50> | |
(Pdb) response._response.headers | |
Headers({'date': ['Sun, 05 Aug 2012 04:43:47 GMT'], 'content-type': ['application/json'], 'server': ['gunicorn/0.13.4']}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== request == | |
POST /post HTTP/1.1 | |
Connection: close | |
Content-Length: 6 | |
Host: httpbin.org | |
Hello! | |
== response == | |
HTTP/1.1 200 OK | |
Content-Type: application/json | |
Date: Sun, 05 Aug 2012 04:43:47 GMT | |
Server: gunicorn/0.13.4 | |
Content-Length: 277 | |
Connection: Close | |
{ | |
"origin": "173.228.104.175", | |
"files": {}, | |
"form": {}, | |
"url": "http://httpbin.org/post", | |
"args": {}, | |
"headers": { | |
"Content-Length": "6", | |
"Host": "httpbin.org", | |
"Content-Type": "", | |
"Connection": "keep-alive" | |
}, | |
"json": null, | |
"data": "Hello!" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment