| 423 | }; |
| 424 | |
| 425 | const char* http_parser_header_state_name(unsigned int header_state) { |
| 426 | switch (header_state) { |
| 427 | case h_general: return "h_general"; |
| 428 | case h_C: return "h_C"; |
| 429 | case h_CO: return "h_CO"; |
| 430 | case h_CON: return "h_CON"; |
| 431 | case h_matching_connection: return "h_matching_connection"; |
| 432 | case h_matching_proxy_connection: return "h_matching_proxy_connection"; |
| 433 | case h_matching_content_length: return "h_matching_content_length"; |
| 434 | case h_matching_transfer_encoding: return "h_matching_transfer_encoding"; |
| 435 | case h_matching_upgrade: return "h_matching_upgrade"; |
| 436 | case h_connection: return "h_connection"; |
| 437 | case h_content_length: return "h_content_length"; |
| 438 | case h_transfer_encoding: return "h_transfer_encoding"; |
| 439 | case h_upgrade: return "h_upgrade"; |
| 440 | case h_matching_transfer_encoding_chunked: return "h_matching_transfer_encoding_chunked"; |
| 441 | case h_matching_connection_keep_alive: return "h_matching_connection_keep_alive"; |
| 442 | case h_matching_connection_close: return "h_matching_connection_close"; |
| 443 | case h_transfer_encoding_chunked: return "h_transfer_encoding_chunked"; |
| 444 | case h_connection_keep_alive: return "h_connection_keep_alive"; |
| 445 | case h_connection_close: return "h_connection_close"; |
| 446 | } |
| 447 | return "h_unknown"; |
| 448 | } |
| 449 | |
| 450 | const char* http_parser_type_name(enum http_parser_type type) { |
| 451 | switch (type) { |