Closed LionOps closed 9 years ago
:sparkles: No lint errors found. :sparkles:
:sparkles: No lint errors found. :sparkles:
What will a consumer use this for?
A consumer can check the error message, and if the invalid range error, know what page was requested.
know what page was requested
Why do they need to know this? Isn't it better to tell them in all requests which page is the last one?
Why do they need to know this? Isn't it better to tell them in all requests which page is the last one?
Certainly, but the current architecture doesn't support that. The ResultList object would need that information, but after next
is called, it's not interacted with again for that request. ResultList next
calls the Retriever's get
method, and the response is handed to ResponseHandler before given to the consumer.
We agreed it was the consumer's responsibility for handling multiple simultaneous requests. They get back totalHits
and would know how many hits there are per page.
:sparkles: No lint errors found. :sparkles:
:sparkles: No lint errors found. :sparkles:
:sparkles: No lint errors found. :sparkles:
:sparkles: No lint errors found. :sparkles:
:+1:
-- Includes some test cleanup