Interface for pagination strategies. More...
#include <ipagination_strategy.hpp>
Public Member Functions | |
| virtual | ~IPaginationStrategy ()=default |
| virtual std::string | nextPageUrl (const std::string &responseHeaders)=0 |
| Extract next page URL from response headers. | |
| virtual std::string | merge (const std::vector< std::string > &pages)=0 |
| Merge all collected pages into a single result. | |
Interface for pagination strategies.
Defines how to discover the next page URL from response headers and how to merge multiple pages into a single result.
|
virtualdefault |
|
pure virtual |
Merge all collected pages into a single result.
| pages | response bodies from all pages |
Implemented in cpp_restapi::LinkHeaderPaginationStrategy.
|
pure virtual |
Extract next page URL from response headers.
| responseHeaders | raw HTTP headers from the response |
Implemented in cpp_restapi::LinkHeaderPaginationStrategy.