-
Notifications
You must be signed in to change notification settings - Fork 342
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
expose the hypermedia headers in response #226
Conversation
Thanks. Per our contribution guidelines, could you please add/update the specs for this feature? Also, please provide a detailed commit message explaining what issue this is addressing and why it's important. Finally, I would only include |
Also, could you please rebase against master to pick up the Travis fix I just pushed? That way, your PR can run on Travis. |
If you haven't already picked up the Travis change, it might be easier to just update the Ruby version in your |
Oh I haven't had time to do this yet. I will get on it today. |
Is the format of the Link header a standard? I'm scratching my head to figure out how to parse it. It's not like anything I've seen before. |
Yes it is. Are you asking about the parsing in general or related to this PR? You shouldn't need to parse it in this PR. If you're trying to parse it for use in an app, you can use our Ruby wrapper, and access the Link data like this:
Our Ruby wrapper is pretty much Octokit.rb, but I need to add a Pagination section to our README. While testing this just now, I found a bug. It seems like the Link header is not returned when SSL is turned on. |
Not related to this PR. I tried accessing Links from the browser and had to write my own parser is JS. The format is really strange. I can't say how they came up with it, but I'd appreciate it much more if it just gave me a link I could drop on the page and not this:
|
Getting back to this PR, could you please make the following changes:
Thanks! |
In order to access headers in a browser, we need to expose them as per CORS protocol. Fix the spec name
Ok, done. |
expose the hypermedia headers in response when using CORS
Thanks! |
No description provided.