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