Skip to content

Commit f95a876

Browse files
authored
[D] handy update version (the-benchmarker#7180)
Removed shared and websockets are now disabled by default
1 parent b459828 commit f95a876

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

d/handy/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
framework:
22
github: andrewlalis/handy-httpd
3-
version: 7.16
3+
version: 8.2

d/handy/dub.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "server",
33
"dependencies": {
4-
"handy-httpd": "~>7.16.1"
4+
"handy-httpd": "~>8.2.0"
55
},
66
"dflags-ldc": [
77
"-mcpu=native",

d/handy/source/app.d

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ void main() {
55
import slf4d;
66
import slf4d.default_provider;
77

8-
auto provider = new shared DefaultProvider(true, Levels.ERROR);
8+
auto provider = new DefaultProvider(true, Levels.ERROR);
99
configureLoggingProvider(provider);
1010

11-
ServerConfig cfg = ServerConfig.defaultValues();
11+
ServerConfig cfg = ServerConfig.init;
1212
cfg.hostname = "0.0.0.0";
1313
cfg.port = 3000;
14-
cfg.enableWebSockets = false;
1514

1615
auto pathHandler = new PathHandler()
1716
.addMapping(Method.GET, "/", (ref ctx) {ctx.response.okResponse();})

0 commit comments

Comments
 (0)