diff options
author | Fedor Indutny <fedor@indutny.com> | 2019-01-27 19:34:34 -0500 |
---|---|---|
committer | Luigi Pinca <luigipinca@gmail.com> | 2019-02-09 14:52:14 +0100 |
commit | 8855d1df72cd621dac798e563df2ecd51d572b1d (patch) | |
tree | 60be6aed248e4b3a5eff8f8b23b223d0e1e92f77 /deps/llhttp/src | |
parent | 02601c247db8a7b147065f5757af5ac47165e517 (diff) | |
download | android-node-v8-8855d1df72cd621dac798e563df2ecd51d572b1d.tar.gz android-node-v8-8855d1df72cd621dac798e563df2ecd51d572b1d.tar.bz2 android-node-v8-8855d1df72cd621dac798e563df2ecd51d572b1d.zip |
deps: update llhttp to 1.1.1
PR-URL: https://github.com/nodejs/node/pull/25753
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/llhttp/src')
-rw-r--r-- | deps/llhttp/src/api.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/llhttp/src/api.c b/deps/llhttp/src/api.c index 37a5dcd183..45227b35af 100644 --- a/deps/llhttp/src/api.c +++ b/deps/llhttp/src/api.c @@ -117,6 +117,16 @@ const char* llhttp_errno_name(llhttp_errno_t err) { } +const char* llhttp_method_name(llhttp_method_t method) { +#define HTTP_METHOD_GEN(NUM, NAME, STRING) case HTTP_##NAME: return #STRING; + switch (method) { + HTTP_METHOD_MAP(HTTP_METHOD_GEN) + default: abort(); + } +#undef HTTP_METHOD_GEN +} + + /* Callbacks */ |