Skip to content
Myr

Merge pull request #2213 from kennethreitz/req-rsp

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

Request->Response.

authored by Cory Benfield · committed by Cory Benfield · parents 359659c, bf8f791 · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/quickstart.rst+1 added-1 removed
29 unmodified lines
30timeline ::3132 >>> r = requests.get('https://api.github.com/events')3334Now, we have a :class:`Request <requests.Request>` object called ``r``. We can34Now, we have a :class:`Response <requests.Response>` object called ``r``. We can35get all the information we need from this object.3637Requests' simple API means that all forms of HTTP request are as obvious. For38example, this is how you make an HTTP POST request::
407 unmodified lines