handler: add new event: UH_EV_HEAD_COMPLETE

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao committed 2020-12-26 17:30:28 +08:00
1 parent 0a7a38a467
commit 06e3d76dc9
3 files changed
+22 -2

No files matched your search

+5
View File
@@ -389,6 +389,11 @@ done:
return -1;
}
conn->handler(conn, UH_EV_HEAD_COMPLETE);
if (conn->flags & CONN_F_SEND_AND_CLOSE)
return -1;
return 0;
}
+1
View File
@@ -45,6 +45,7 @@ struct uh_plugin {
};
enum {
UH_EV_HEAD_COMPLETE,
UH_EV_BODY,
UH_EV_COMPLETE
};