You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get HTTP verb? (GET, POST, PUT, HEAD, PATCH) #37
My fork of node.native adds the ability to get the HTTP body (the body of your POST).
I think you could get the HTTP method by adding code in client_context::parse which will get the method from the http_parser - this has a method attribute which is set in http_parser_execute(). http_parser is one of node.native's submodules.
The closest I've gotten is the header output (https://github.com/SamuelMarks/node.native/blob/master/routes.h#L54):
How do I get the HTTP verb?