Skip to content
Myr

emphasize r.content

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 ce1945c · Browse files · 1 file+3 added−1 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−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/index.rst+3 added-1 removed
19 unmodified lines
20::2122 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))23 >>> r.status_code24 20024 20425 >>> r.headers['content-type']26 'application/json'27 >>> r.content28 ...2930See `the same code, without Requests <https://gist.github.com/973705>`_.3132Requests allow you to send **HEAD**, **GET**, **POST**, **PUT**,
60 unmodified lines