Compare commits

..

No commits in common. "f08c088e4ff8012eeb6d1c3892b3ce5ec61b4d19" and "aa699d15dd9e1f5c7a2160ba84d47c315246b08c" have entirely different histories.

3 changed files with 9 additions and 15 deletions

View File

@ -5,7 +5,7 @@
"copyright": "Copyright © 2025, Andrew Lalis", "copyright": "Copyright © 2025, Andrew Lalis",
"dependencies": { "dependencies": {
"handy-http-primitives": "~>1.8", "handy-http-primitives": "~>1.8",
"handy-http-transport": "~>1.8", "handy-http-transport": "~>1.6",
"handy-http-data": "~>1.2", "handy-http-data": "~>1.2",
"handy-http-websockets": "~>1.2", "handy-http-websockets": "~>1.2",
"handy-http-handlers": "~>1.0", "handy-http-handlers": "~>1.0",

View File

@ -1,20 +1,18 @@
{ {
"fileVersion": 1, "fileVersion": 1,
"versions": { "versions": {
"asdf": "0.8.0", "asdf": "0.7.17",
"dxml": "0.4.5", "dxml": "0.4.4",
"handy-http-data": "1.3.0", "handy-http-data": "1.2.0",
"handy-http-handlers": "1.3.0", "handy-http-handlers": "1.0.0",
"handy-http-primitives": "1.8.1", "handy-http-primitives": "1.8.0",
"handy-http-transport": "1.10.1", "handy-http-transport": "1.6.0",
"handy-http-websockets": "1.2.0", "handy-http-websockets": "1.2.0",
"mir-algorithm": "3.22.4", "mir-algorithm": "3.22.4",
"mir-core": "1.7.3", "mir-core": "1.7.3",
"path-matcher": "1.2.0", "path-matcher": "1.2.0",
"photon": "0.18.11",
"sharded-map": "2.7.0",
"silly": "1.1.1", "silly": "1.1.1",
"slf4d": "4.2.0", "slf4d": "4.1.1",
"streams": "3.6.0" "streams": "3.6.0"
} }
} }

View File

@ -14,11 +14,7 @@ public import handy_http_handlers;
* port = The port to host the server on. Defaults to 8080. * port = The port to host the server on. Defaults to 8080.
*/ */
void startServer(HttpRequestHandler handler, ushort port = 8080) { void startServer(HttpRequestHandler handler, ushort port = 8080) {
HttpTransport tp = new TaskPoolHttp1Transport(handler, Http1TransportConfig( HttpTransport tp = new TaskPoolHttp1Transport(handler, port);
defaultConfig().host,
port,
defaultConfig().workerCount
));
tp.start(); tp.start();
} }