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

Referenced HTTP headers #17

Closed
zdne opened this issue Aug 14, 2013 · 12 comments
Closed

Referenced HTTP headers #17

zdne opened this issue Aug 14, 2013 · 12 comments

Comments

@zdne
Copy link
Contributor

zdne commented Aug 14, 2013

Provide the ability to define HTTP headers that can be referenced later.

Note: This can also be covered as "Global HTTP Headers".

@rurounijones
Copy link

This would be extremely useful for things like OAuth headers which can be quite long but the same format (although each field's value can differ) and might be used everywhere.

@BRMatt
Copy link

BRMatt commented Nov 27, 2013

👍 Other use cases:

  • Rate limiting headers in response
  • Authentication headers in request

@zdne Is there a syntax you had in mind?

@zdne
Copy link
Contributor Author

zdne commented Nov 27, 2013

@BRMatt

Yes I am working on it as part of #25, #11 and #36 . I plan to post it (probably as a new milestone issue) here later this week or in the beginning of the next week.

@BRMatt
Copy link

BRMatt commented Nov 27, 2013

Fantastic, thanks! Looking forward to digging into it.

@zdne
Copy link
Contributor Author

zdne commented Nov 27, 2013

Cool! Would appreciate your input on it.

@BRMatt
Copy link

BRMatt commented Nov 27, 2013

Would love to! Are you going to be doing it on the issues or through PRs? I'm currently trying to prototype an API by documenting it first and these features would be very useful.

EDIT: I'll have a think and post some comments in the next day or so.

@zdne
Copy link
Contributor Author

zdne commented Nov 30, 2013

@BRMatt I will push it in a new branch at first; ETA update: mid-next week.

@suparngp
Copy link

+1 for this. I am having a hard time to manage long auth headers.

@zdne zdne mentioned this issue Dec 17, 2013
@zdne
Copy link
Contributor Author

zdne commented Dec 17, 2013

@BRMatt

as the life goes it took a bit longer to put it all together but I believe I see the light now: #47. Please let me know what do you think.

@BRMatt
Copy link

BRMatt commented Dec 18, 2013

👍 That sounds like a much better approach, I'm a little confused about part of the syntax but I'll post over there.

@zdne
Copy link
Contributor Author

zdne commented Jan 31, 2014

To be addressed (and closed) with #47.

@zdne
Copy link
Contributor Author

zdne commented Sep 28, 2015

RFC proposal of syntax addressing this issue: apiaryio/api-blueprint-rfcs#3.

Please track and comment on the RFC.

Thank you!

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

No branches or pull requests

4 participants