Skip to content
Myr

Revert "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.

This reverts commit f968fe013659b9b5b89f0316203de5f3139a7217.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f968fe0 · Browse files · 1 file+3 added−5 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+3 added−5 removed

  • other:+3 added−5 removed

1 file+3 added−5 removed

modified:docs/index.rst+3 added-5 removed
16 unmodified lines
17Things shouldn’t be this way. Not in Python.1819::2021 >>> r = requests.get('http://httpbin.org/get', auth=('user', 'passwd'))21 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))22 >>> r.status_code23 20023 20424 >>> r.headers['content-type']25 'application/json'26 >>> r.text27 u'{\n "url": "http://httpbin.org/get", \n "headers": {...28 >>> r.json29 {u'url': u'http://httpbin.org/get', u'headers': {...27 ...2829See `the same code, without Requests <https://gist.github.com/973705>`_.3031Requests 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