PaginationLinkData¶
- class safir.database.PaginationLinkData(prev_url, next_url, first_url)¶
Bases:
object
Holds the data returned in an RFC 8288
Link
header.Attributes Summary
URL of the first page.
URL of the next page, or
None
for the last page.URL of the previous page, or
None
for the first page.Methods Summary
from_header
(header)Parse an RFC 8288
Link
with pagination URLs.Attributes Documentation
-
next_url:
str
|None
= <dataclasses._MISSING_TYPE object>¶ URL of the next page, or
None
for the last page.
-
prev_url:
str
|None
= <dataclasses._MISSING_TYPE object>¶ URL of the previous page, or
None
for the first page.
Methods Documentation
-
next_url: