Skip to content
Myr

Remove requests.*() from docs.

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

This looks like a typo, even though it isn't.

authored by Cory Benfield · committed by Cory Benfield · parent ff2b496 · Browse files · 1 file+7 added−7 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+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:docs/user/advanced.rst+7 added-7 removed
46 unmodified lines
4748Request and Response Objects49----------------------------5051Whenever a call is made to requests.*() you are doing two major things. First,52you are constructing a ``Request`` object which will be sent off to a server53to request or query some resource. Second, a ``Response`` object is generated54once ``requests`` gets a response back from the server. The Response object55contains all of the information returned by the server and also contains the56``Request`` object you created originally. Here is a simple request to get some57very important information from Wikipedia's servers::51Whenever a call is made to ``requests.get()`` and friends you are doing two52major things. First, you are constructing a ``Request`` object which will be53sent off to a server to request or query some resource. Second, a ``Response``54object is generated once ``requests`` gets a response back from the server.55The Response object contains all of the information returned by the server and56also contains the ``Request`` object you created originally. Here is a simple57request to get some very important information from Wikipedia's servers::5859 >>> r = requests.get('http://en.wikipedia.org/wiki/Monty_Python')6061If we want to access the headers the server sent back to us, we do this::
535 unmodified lines