Skip to main content
Module

x/drash/console/benchmark_app.ts

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
File
import * as Drash from "../mod.ts";
class HomeResource extends Drash.Resource { paths = ["/"]; public GET(_request: Drash.Request, response: Drash.Response) { response.body = "Hello World!"; }}
const server = new Drash.Server({ port: 1447, protocol: "http", hostname: "127.0.0.1", resources: [HomeResource],});
server.run();
console.log(`App running at ${server.address}.`);