3 ms·
I thought it was a pretty cool implementation (zero memory alloc is pretty hard most of the time), though I was disappointed how HTTP methods were hard coded in
by pquerna 17y ago
I thought it was a pretty cool implementation (zero memory alloc is pretty hard most of the time), though I was disappointed how HTTP methods were hard coded in, so adding a new HTTP method (like PROPFIND?) would be adding a ton of code, though I think you could make a few macros for doing HTTP methods and keep the rest of it.
- davisp 17y agoHacked together an on_method callback last night for the Python bindings I'm writing: http://github.com/davisp/http-parser/commit/50e54f95fd4c2eac59d669ef5e9e0e8b61a0955d http://github.com/davisp/http-parser/commit/50e54f95fd4c2eac...