Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for paginating API responses? #22

Closed
lox opened this issue Jan 28, 2022 · 2 comments
Closed

Support for paginating API responses? #22

lox opened this issue Jan 28, 2022 · 2 comments

Comments

@lox
Copy link

lox commented Jan 28, 2022

I'm using this for getting changed files between two commits, I presume this will split across pages, is there a way using the HTTPClient to get at the Link headers?

@samcoe
Copy link
Contributor

samcoe commented Jan 28, 2022

@lox The HTTPClient function returns a standard Go http.Client instance so after making a request the client will return a http.Response that you can inspect the headers of using the Header field. Does that answer your question?

@lox
Copy link
Author

lox commented Jan 28, 2022

Yes, it does. I was actually using the RESTClient!

@lox lox closed this as completed Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants