TIL: Node.js HTTP server does not work with custom methods
So I was being silly here and trying to implement a server with funky methods and endpoints, and very soon I realised something was not quite right.
Fast-forward some head scratches and google searches, and then I learned: HTTP servers with Node.JS have a limited list of allowed methods!
As of today, the list of allowed methods is in this file.
So no, you cannot call an HTTP endpoint with BAKE /me/cookies
.
The server response is a straight 400 Bad Request
if you try.