Skip to content
Myr

readme update

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

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

  • other:+11 added−3 removed

1 file+11 added−3 removed

modified:README.rst+11 added-3 removed
21 unmodified lines
22But this one's different. This one's going to be awesome. And simple.2324Really simple.252627Usage28-----2930Let's do this. ::313132 >>> import requests33 34 >>> request.get(url, params={}, headers={} auth=None)35 <response object>36 37 >>> request.put(url, params={}, headers={}, auth=None)38 <response object>39 40 >>> request.post(url, params={}, headers={}, auth=None)41 <response object>42 43 >>> request.delete(url, params={}, headers={}, auth=None)44 <response object>45 46 47 >>> r = request.Request()48 41 >>> r.url = 'httep://someurl.com/'49 >>> r.url = 'http://someurl.com/'50 >>> r.add_header(('key', 'value'))51 52 >>> r.method = 'GET'53
19 unmodified lines
73 74Access stuff. ::7576 >>> r = request.get('https://github.com')69 >>> r.status_code()77 >>> r.response.status_code()7879HTTP Authentication. ::8081 >>> whoiam = AuthObject('xxx-username', 'xxx-pass')
37 unmodified lines