Skip to content
Myr

In fact, the feature is so awesome that it should go into index.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Danilo Bargen · committed by Danilo Bargen · parent 1164450 · Browse files · 1 file+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:docs/index.rst+5 added-3 removed
16 unmodified lines
17Things shouldn’t be this way. Not in Python.1819::2021 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))21 >>> r = requests.get('http://httpbin.org/get', auth=('user', 'passwd'))22 >>> r.status_code23 20423 20024 >>> r.headers['content-type']25 'application/json'26 >>> r.text27 ...27 u'{\n "url": "http://httpbin.org/get", \n "headers": {...28 >>> r.json29 {u'url': u'http://httpbin.org/get', u'headers': {...3031See `the same code, without Requests <https://gist.github.com/973705>`_.3233Requests takes all of the work out of Python HTTP/1.1 — making your integration with web services seamless. There's no need to manually add query strings to your URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_, which is embedded within Requests.
103 unmodified lines