Compare commits

..

2 Commits

Author SHA1 Message Date
andrewlalis f08c088e4f Upgrade dependencies. 2026-01-15 07:48:25 -05:00
andrewlalis 2d393d9961 Updated for transport v1.8 2025-08-09 21:56:28 -04:00
3 changed files with 15 additions and 9 deletions

View File

@ -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",

View File

@ -1,18 +1,20 @@
{
"fileVersion": 1,
"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",
"asdf": "0.8.0",
"dxml": "0.4.5",
"handy-http-data": "1.3.0",
"handy-http-handlers": "1.3.0",
"handy-http-primitives": "1.8.1",
"handy-http-transport": "1.10.1",
"handy-http-websockets": "1.2.0",
"mir-algorithm": "3.22.4",
"mir-core": "1.7.3",
"path-matcher": "1.2.0",
"photon": "0.18.11",
"sharded-map": "2.7.0",
"silly": "1.1.1",
"slf4d": "4.1.1",
"slf4d": "4.2.0",
"streams": "3.6.0"
}
}

View File

@ -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();
}