Skip to content
Myr

Fix a couple more malformed :meth: and :class: links

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

authored by David Pursehouse · committed by David Pursehouse · parent 49ecffb · Browse files · 2 files+6 added−5 removed
This commit

State

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

Trailers

  • Change-Id: Ie38844a40ec7a483e6ce5e56077be344242bcd99

Diff stats

2 files+6 added−5 removed

  • other:+6 added−5 removed

2 files+6 added−5 removed

modified:docs/user/authentication.rst+1 added-1 removed
97 unmodified lines
98If you can't find a good implementation of the form of authentication you99want, you can implement it yourself. Requests makes it easy to add your own100forms of authentication.101102To do so, subclass :class:`requests.auth.AuthBase` and implement the102To do so, subclass :class:`AuthBase <requests.auth.AuthBase>` and implement the103``__call__()`` method::104105 >>> import requests106 >>> class MyAuth(requests.auth.AuthBase):
22 unmodified lines
modified:docs/user/quickstart.rst+5 added-4 removed
30 unmodified lines
31timeline ::3233 >>> r = requests.get('https://github.com/timeline.json')3435Now, we have a :class:`Response` object called ``r``. We can get all the36information we need from this object.35Now, we have a :class:`Request <requests.Request>` object called ``r``. We can36get all the information we need from this object.3738Requests' simple API means that all forms of HTTP request are as obvious. For39example, this is how you make an HTTP POST request::40
244 unmodified lines
285286 >>> r.status_code == requests.codes.ok287 True288289If we made a bad request (a 4XX client error or 5XX server error response), we can raise it with290:class:`Response.raise_for_status()`::289If we made a bad request (a 4XX client error or 5XX server error response), we290can raise it with291:meth:`Response.raise_for_status() <requests.Response.raise_for_status>`::292293 >>> bad_r = requests.get('http://httpbin.org/status/404')294 >>> bad_r.status_code295 404
150 unmodified lines