Default implementation for streaming of paginated collections from the API.
This module is usually not used directly. Streaming functionality is used through resource modules:
items =
DSpace.API.Item.list()
|> DSpace.API.stream!(client)
# Yields: [item1, item2, item3], [item4, item5, item6], ...
Summary
Functions
Creates a stream for paginated API responses.
Functions
@spec new(DSpace.API.t(), struct(), keyword()) :: Enumerable.t()
Creates a stream for paginated API responses.
Parameters
client- TheDSpace.API.t/0client structure to use for the request.operation- The operation to perform, configured with a transformer that returns the response as a tuple{items, meta, next}whereitemsis a list of resources,metais metadata, andnextis the URL for the next page ornilif there are no more pages.options- Keyword list of request options.