Koha::REST::Plugin::Pagination
my $patrons = Koha::Patrons->search( ... ); $c->add_pagination_headers({ total => $patrons->count, params => { _page => ... _per_page => ... ... } });
Adds a Link header to the response message $c carries, following RFC5988, including the following relation types: 'prev', 'next', 'first' and 'last'. It also adds X-Total-Count, containing the total results count.
my $link = _build_link( $c, { page => 1, per_page => 5, rel => 'prev' });
Returns a string, suitable for using in Link headers following RFC5988.