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

Can we include Headers? #17

Open
jakejohns opened this issue May 10, 2019 · 2 comments
Open

Can we include Headers? #17

jakejohns opened this issue May 10, 2019 · 2 comments

Comments

@jakejohns
Copy link

Is anyone planning on adding Header name constants?

eg, there's some header constants here:
https://github.com/lmc-eu/http-constants/blob/master/src/Header.php

@boesing
Copy link

boesing commented Mar 9, 2022

I would really love to see this in this package.
I would not expect that every header is available but since there is not every status code available as a constant, that should be absolutely fine.

I also like how the referenced package annotates the proper RFCs.
@jakejohns do you know if that component uses some kind of generator to create these constants?
@weierophinney Any opinions on this?

@weierophinney
Copy link
Contributor

I think it would be great ... but let's do them as enums instead. :)

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

3 participants