Add pagination support to http client