Hacker News new | ask | show | jobs
by robertlagrant 3 days ago
> https://www.rfc-editor.org/info/rfc10008/#section-2.8

Having a standard way to do pagination would be extremely useful. If we could add an items (or similar) range header type that would be excellent!

For example, in the HEAD response (and the QUERY response):

  accept-ranges: items
  items-length: 342
In the QUERY request:

  Range: items=0-9
1 comments

The pagination is not always done with page numbers, sometimes there are "next" and "previous" tokens.