Skip to content

Instantly share code, notes, and snippets.

@catsby
Created June 26, 2013 15:53
Show Gist options
  • Save catsby/5868627 to your computer and use it in GitHub Desktop.
Save catsby/5868627 to your computer and use it in GitHub Desktop.
Link headers for pagination
HTTP/1.1 200 OK
Server: GitHub.com
Date: Wed, 26 Jun 2013 15:52:57 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
Vary: Accept
Cache-Control: public, max-age=60, s-maxage=60
Last-Modified: Tue, 25 Jun 2013 19:27:36 GMT
ETag: "981787ffc2c76d463f9ed08c6befa9c0"
X-GitHub-Media-Type: github.beta
Link: <https://api.github.com/user/61721/repos?page=2>; rel="next", <https://api.github.com/user/61721/repos?page=4>; rel="last"
X-Content-Type-Options: nosniff
Content-Length: 153973
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes
Access-Control-Allow-Origin: *
Vary: Accept-Encoding
@catsby
Copy link
Author

catsby commented Jun 26, 2013

From curl -I https://api.github.com/users/catsby/repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment