- BREAKING: remove
address
server config. HTTP servers now run with HTTPOptions
as argument. for example:
const server = new Drash.Http.Server({
response_output: "application/json"
});
server.run({
hostname: "localhost",
port: 1447
});
const server = new Drash.Http.Server({
response_output: "application/json"
});
server.runTLS({
hostname: "localhost",
port: 1447,
cert: "/path/to/cert_file.crt",
key: "/path/to/key_file.key"
});
- fix: make
resources
server config optional again
- improvement: remove unncessary
default
keywords
- improvement: remove unnecessary
--allow-env
requirement. users will NOT see the Deno server started at {address}:{port}
message anymore. they will have to add console.log("Deno server started at {address}:{port}")
themselves now.