Skip to content

Commit

Permalink
Add new section about incremental loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed May 22, 2024
1 parent 373b8b3 commit 8b88d65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/website/docs/general-usage/http/rest-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ def custom_response_handler(response):
client.paginate("/posts", hooks={"response": [custom_response_handler]})
```

### Incremental loading

TODO

The handler function may raise `IgnoreResponseException` to exit the pagination loop early. This is useful for the enpoints that return a 404 status code when there are no items to paginate.

## Shortcut for paginating API responses
Expand Down

0 comments on commit 8b88d65

Please sign in to comment.