LinkData

class gafaelfawr.models.link.LinkData(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) – The contents of an RFC 8288 Link header.

Returns:

The parsed form of that header.

Return type:

LinkData