File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ If you can't find a good implementation of the form of authentication you
9999want, you can implement it yourself. Requests makes it easy to add your own
100100forms of authentication.
101101
102- To do so, subclass :class: `requests.auth.AuthBase ` and implement the
102+ To do so, subclass :class: `AuthBase < requests.auth.AuthBase> ` and implement the
103103``__call__() `` method::
104104
105105 >>> import requests
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ timeline ::
3232
3333 >>> r = requests.get('https://github.com/timeline.json')
3434
35- Now, we have a :class: `Response ` object called ``r ``. We can get all the
36- information we need from this object.
35+ Now, we have a :class: `Request <requests.Request> ` object called ``r ``. We can
36+ get all the information we need from this object.
3737
3838Requests' simple API means that all forms of HTTP request are as obvious. For
3939example, this is how you make an HTTP POST request::
@@ -286,8 +286,9 @@ reference::
286286 >>> r.status_code == requests.codes.ok
287287 True
288288
289- If we made a bad request (a 4XX client error or 5XX server error response), we can raise it with
290- :class: `Response.raise_for_status() `::
289+ If we made a bad request (a 4XX client error or 5XX server error response), we
290+ can raise it with
291+ :meth: `Response.raise_for_status() <requests.Response.raise_for_status> `::
291292
292293 >>> bad_r = requests.get('http://httpbin.org/status/404')
293294 >>> bad_r.status_code
You can’t perform that action at this time.
0 commit comments