Skip to content

Commit b760473

Browse files
OmarAlJarrahclaude
andauthored
Pagination breadth: page-number, Link-header strategies, and a page cap (#8)
* docs: design spec for pagination breadth subsystem Page-number and Link-header strategy constructors plus an RFC 8288 NextLink parser and a WithMaxPages cap, built on the existing token-based Pager. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs: implementation plan for pagination breadth subsystem Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * feat(pagination): add WithMaxPages cap * feat(pagination): add page-number and Link-header strategies * test(pagination): cover page-number cap and parser recovery; use slices.Equal * docs: document pagination strategies and WithMaxPages --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a303b4c commit b760473

8 files changed

Lines changed: 1012 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ standard library.
5656
| [`httperr`](./httperr) | `ResponseError` for non-success responses; buffers and rewinds the body. |
5757
| [`mediatype`](./mediatype) | Immutable media-type value with parsing and common constants. |
5858
| [`header`](./header) | Canonical HTTP header-name constants. |
59-
| [`pagination`](./pagination) | Generic token-pagination as `iter.Seq2` range-over-func iterators. |
59+
| [`pagination`](./pagination) | Generic pagination as `iter.Seq2` range-over-func iterators — cursor/token, page-number, and RFC 8288 Link-header strategies, with a `WithMaxPages` cap. |
6060
| [`config`](./config) | Layered override → environment → default settings resolver; non-failing typed getters. |
6161
| [`serde`](./serde) | Serialization seam (Marshaler/Unmarshaler) with a JSON default, plus Tristate for PATCH payloads. |
6262
| root [`dexpace`](.) | Umbrella `Client` wiring the default policy stack. |

0 commit comments

Comments
 (0)