From 2d393d996113090dee821ede3bfe1b2dbae129bb Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Sat, 9 Aug 2025 21:56:28 -0400 Subject: [PATCH] Updated for transport v1.8 --- dub.json | 2 +- dub.selections.json | 8 ++++---- source/handy_http_starter/package.d | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dub.json b/dub.json index 6175c20..50cc299 100644 --- a/dub.json +++ b/dub.json @@ -5,7 +5,7 @@ "copyright": "Copyright © 2025, Andrew Lalis", "dependencies": { "handy-http-primitives": "~>1.8", - "handy-http-transport": "~>1.6", + "handy-http-transport": "~>1.8", "handy-http-data": "~>1.2", "handy-http-websockets": "~>1.2", "handy-http-handlers": "~>1.0", diff --git a/dub.selections.json b/dub.selections.json index be5954f..c55732f 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -3,10 +3,10 @@ "versions": { "asdf": "0.7.17", "dxml": "0.4.4", - "handy-http-data": "1.2.0", - "handy-http-handlers": "1.0.0", - "handy-http-primitives": "1.8.0", - "handy-http-transport": "1.6.0", + "handy-http-data": "1.3.0", + "handy-http-handlers": "1.1.0", + "handy-http-primitives": "1.8.1", + "handy-http-transport": "1.8.0", "handy-http-websockets": "1.2.0", "mir-algorithm": "3.22.4", "mir-core": "1.7.3", diff --git a/source/handy_http_starter/package.d b/source/handy_http_starter/package.d index 3489a83..28c30f2 100644 --- a/source/handy_http_starter/package.d +++ b/source/handy_http_starter/package.d @@ -14,7 +14,11 @@ public import handy_http_handlers; * port = The port to host the server on. Defaults to 8080. */ void startServer(HttpRequestHandler handler, ushort port = 8080) { - HttpTransport tp = new TaskPoolHttp1Transport(handler, port); + HttpTransport tp = new TaskPoolHttp1Transport(handler, Http1TransportConfig( + defaultConfig().host, + port, + defaultConfig().workerCount + )); tp.start(); }