Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It really irks me that the de facto rate limiting headers mix camel case with the more standard dashes, i.e. RateLimit-Remaining instead of Rate-Limit-Remaining.





This irks me too, looking at the registry [1] it would definitely be an outlier.

[1] https://www.iana.org/assignments/http-fields/http-fields.xht...


Http headers are case insensitive by spec (but not always as implemented, yay). I'm a fan of ratelimit as a single word, but then they capsed in the middle to hedge, I guess?

it's all lowercase anyway at parse time.

rate-limit-remaining would be nicer than ratelimit-remaining



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: