More h3 wrap up

This commit is contained in:
Alex Hultman
2022-05-15 04:23:47 +02:00
parent 9f9ca6936a
commit 7da868a57d
6 changed files with 73 additions and 32 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ int main() {
.key_file_name = "../misc/key.pem",
.cert_file_name = "../misc/cert.pem",
.passphrase = "1234"
}).get("/*", [](auto *res, auto */*req*/) {
}).get("/*", [](auto *res, auto *req) {
std::cout << req->getHeader(":path") << std::endl;
res->end("Hello quic!");
}).listen(3000, [](auto *listen_socket) {
if (listen_socket) {