-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get HTTP verb? (GET, POST, PUT, HEAD, PATCH) #37
Comments
Hi there. 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. Cheers, Seb |
Hi Samuel, how did you get on with this one? |
Didn't get around to it; TBH: I have moved away from C++ now for my web development, namely due to:
|
Fair enough - you have to do a bit of hacking to use node.native, and that won't appeal to everyone. If you could close this issue, that'd be good. |
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?
The text was updated successfully, but these errors were encountered: