mirror of
https://github.com/nodejs/node.git
synced 2026-11-18 18:15:17 -05:00
llhttp is modern, written in human-readable TypeScript, verifiable, and is very easy to maintain. See: https://github.com/indutny/llhttp PR-URL: https://github.com/nodejs/node/pull/24059 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
25 lines
609 B
C
25 lines
609 B
C
#ifndef SRC_HTTP_PARSER_ADAPTOR_H_
|
|
#define SRC_HTTP_PARSER_ADAPTOR_H_
|
|
|
|
#ifdef NODE_EXPERIMENTAL_HTTP
|
|
# include "llhttp.h"
|
|
|
|
typedef llhttp_type_t parser_type_t;
|
|
typedef llhttp_errno_t parser_errno_t;
|
|
typedef llhttp_settings_t parser_settings_t;
|
|
typedef llhttp_t parser_t;
|
|
|
|
#else /* !NODE_EXPERIMENTAL_HTTP */
|
|
# include "http_parser.h"
|
|
|
|
typedef enum http_parser_type parser_type_t;
|
|
typedef enum http_errno parser_errno_t;
|
|
typedef http_parser_settings parser_settings_t;
|
|
typedef http_parser parser_t;
|
|
|
|
#define HPE_USER HPE_UNKNOWN
|
|
|
|
#endif /* NODE_EXPERIMENTAL_HTTP */
|
|
|
|
#endif /* SRC_HTTP_PARSER_ADAPTOR_H_ */
|