Closed scottcorgan closed 10 years ago
Sounds good
Sent from my iPhone
On Apr 17, 2014, at 10:26 AM, Scott Corgan notifications@github.com wrote:
@mbleigh @collin
I'd like to propose a simple way to build the query string parameters. This would be useful for pagination, etc.
var pager = request .origin('http://someapi.com') .get('test') .query('page', 1);
pager() // sends http request: http://someapi.com/test?page=1
pager.query('page', 2);
pager() // sends http request: http://someapi.com/test?page=2 What do you think?
— Reply to this email directly or view it on GitHub.
@mbleigh @collin
I'd like to propose a simple way to build the query string parameters. This would be useful for pagination, etc.
What do you think?