introduce enumerator to do pagination

Why use lowecase `next-range` while capitalized `Range` is used below? I'd keep the same capitalization as used by the server for consistency.