nodejs / http-parser

http request/response parser for c
MIT License
6.32k stars 1.53k forks source link

Split marco 'HTTP_ERRNO_MAP' #533

Open ProjectDInitial opened 2 years ago

ProjectDInitial commented 2 years ago

The macro 'HTTP_ERRNO_MAP' has two kinds error (callback-error and parsing-error). when we are coding, we always used the two kinds error, but we can't good for write the code. So, Split marco 'HTTP_ERRNO_MAP' to 'HTTP_ERRNO_CALLBACK_MAP' and 'HTTP_ERRNO_PARSING_MAP' help us for coding.