PaginatedLinkData

class safir.database.PaginatedLinkData(prev_url, next_url, first_url)

Bases: object

Holds the data returned in an RFC 8288 Link header.

Parameters:

Methods Summary

from_header(header)

Parse an RFC 8288 Link with pagination URLs.

Methods Documentation

classmethod from_header(header)

Parse an RFC 8288 Link with pagination URLs.

Parameters:

header (str | None) – Contents of an RFC 8288 Link header.

Returns:

Parsed form of that header.

Return type:

PaginatedLinkData