add HttpMessage::is_header_complete()

This commit is contained in:
XieHan
2022-03-06 15:58:16 +08:00
parent e1899fb75b
commit 9b044eb495
2 changed files with 9 additions and 6 deletions
+5
View File
@@ -93,6 +93,11 @@ public:
this->parser) == 0;
}
bool is_header_complete() const
{
return http_parser_header_complete(this->parser);
}
bool has_connection_header() const
{
return http_parser_has_connection(this->parser);