Add some Http3 skeleton

This commit is contained in:
Alex Hultman
2022-05-02 23:32:55 +02:00
parent e4c6fbf8de
commit b46a456393
7 changed files with 88 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace uWS {
struct Http3Context {
static Http3Context *create(us_loop_t *loop, us_socket_context_options_t options) {
return nullptr;
// call init here after setting the ext to Http3ContextData
}
void init() {
// set all callbacks here
}
void onHttp() {
// modifies the router we own as part of Http3ContextData, used in callbacks set in init
}
};
}