Hacker News new | ask | show | jobs
by hyperturtle 974 days ago
I also don't prefer using strings, but to be fair, HTTP methods are just strings when the request is received. There is some beauty in that in matches the prefix of the first line of an HTTP packet
2 comments

On the wire, everything is a string. Doesn't make it a good type to use!
Strings with a well defined meaning that is not being taken into consideration here beyond routing.