diff --git a/src/App.h b/src/App.h index 8687cd1..00a8ccb 100644 --- a/src/App.h +++ b/src/App.h @@ -116,7 +116,7 @@ public: /* This will do for now, would be better if us_socket_context_remove_server_name returned the user data */ auto *domainRouter = us_socket_context_find_server_name_userdata(SSL, (struct us_socket_context_t *) httpContext, hostname_pattern.c_str()); if (domainRouter) { - delete (HttpRouter::RouterData>) domainRouter; + delete (HttpRouter::RouterData> *) domainRouter; } us_socket_context_remove_server_name(SSL, (struct us_socket_context_t *) httpContext, hostname_pattern.c_str()); diff --git a/src/Http3Response.h b/src/Http3Response.h index 8545a36..1504c6e 100644 --- a/src/Http3Response.h +++ b/src/Http3Response.h @@ -9,6 +9,15 @@ namespace uWS { /* Is a quic stream */ struct Http3Response { + // this one is AsyncSocket, so it has to translate to the stream - abrupt stream termination + void close() { + //us_quic_stream_close((us_quic_stream_t *) this); + } + + void endWithoutBody(std::optional reportedContentLength = std::nullopt, bool closeConnection = false) { + + } + Http3Response *writeStatus(std::string_view status) { Http3ResponseData *responseData = (Http3ResponseData *) us_quic_stream_ext((us_quic_stream_t *) this);