http-message-util icon indicating copy to clipboard operation
http-message-util copied to clipboard

Can we include Headers?

Open jakejohns opened this issue 6 years ago • 2 comments

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

jakejohns avatar May 10 '19 19:05 jakejohns

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?

boesing avatar Mar 09 '22 08:03 boesing

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

weierophinney avatar Jul 28 '22 19:07 weierophinney