cpp Rest API master
C++ library for REST API access with Qt, Curl and cpp-httplib backends
 
Loading...
Searching...
No Matches
link_header_pagination_strategy.hpp
Go to the documentation of this file.
1#ifndef LINK_HEADER_PAGINATION_STRATEGY_HPP_INCLUDED
2#define LINK_HEADER_PAGINATION_STRATEGY_HPP_INCLUDED
3
5#include "cpp_restapi_export.h"
6
7namespace cpp_restapi
8{
9
17 class CPP_RESTAPI_EXPORT LinkHeaderPaginationStrategy: public IPaginationStrategy
18 {
19 public:
20 std::string nextPageUrl(const std::string& responseHeaders) override;
21 std::string merge(const std::vector<std::string>& pages) override;
22 };
23
24}
25
26#endif
Pagination strategy using RFC 5988 Link headers.
Definition link_header_pagination_strategy.hpp:18
std::string merge(const std::vector< std::string > &pages) override
Merge all collected pages into a single result.
std::string nextPageUrl(const std::string &responseHeaders) override
Extract next page URL from response headers.
Definition base_connection.hpp:13
Interface for pagination strategies.
Definition ipagination_strategy.hpp:17