Skip to content
Myr

Update the link headers doc to match the code

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

authored by Thomas Grainger · committed by Thomas Grainger · parent 5d87e1a · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/user/advanced.rst+4 added-4 removed
478 unmodified lines
479 '<https://api.github.com/users/kennethreitz/repos?page=2&per_page=10>; rel="next", <https://api.github.com/users/kennethreitz/repos?page=6&per_page=10>; rel="last"'480481Requests will automatically parse these link headers and make them easily consumable::482483 >>> r.links['next']484 'https://api.github.com/users/kennethreitz/repos?page=2&per_page=10'483 >>> r.links["next"]484 {'url': 'https://api.github.com/users/kennethreitz/repos?page=2&per_page=10', 'rel': 'next'}485486 >>> r.links['last']487 'https://api.github.com/users/kennethreitz/repos?page=6&per_page=10'486 >>> r.links["last"]487 {'url': 'https://api.github.com/users/kennethreitz/repos?page=7&per_page=10', 'rel': 'last'}488