How to paginate metadata from response header?


So, how do I paginate response that put metadata on the header? Every ember addon that I checked uses metadata (like ‘currentPage’, ‘totalPages’, etc) on the response body.

Any advice? Thank you!



Try to store is session and then use it. I have done it for some other value.


Hi Vishu, thanks for your help.

Can you be more clean? Every paginate addon that I try’d to use (like ember-infinity, ember-cli-pagination, etc) expects meta-data in the response body. How exactly the session can be used by them?