http-message-util
http-message-util copied to clipboard
Can we include Headers?
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
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?
I think it would be great ... but let's do them as enums instead. :)