Document Response.links property (added in #211)

This commit is contained in:
Tim Bre 2023-07-21 17:18:16 +02:00
parent 6a1841b924
commit 6c7711584d
No known key found for this signature in database
GPG Key ID: F6A5080C07D33090

View File

@ -65,6 +65,9 @@
* `.request` - **Request**
* `.next_request` - **Optional[Request]**
* `.cookies` - **Cookies**
* `.links` - **Dict[str, Dict[str, str]]**
* All parsed links from [the `link` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link), mapping each link's `rel` _or_ otherwise `url` to a `dict` of the link's params.
The link params always include its `url`.
* `.history` - **List[Response]**
* `.elapsed` - **[timedelta](https://docs.python.org/3/library/datetime.html)**
* The amount of time elapsed between sending the request and calling `close()` on the corresponding response received for that request.