Simple HTTP web server

    • Use Deno’s integrated HTTP server to run your own web server.

    In this example, the user-agent of the client is returned to the client:

    webserver.ts:

      Then navigate to http://localhost:8080/ in a browser.

      Then run this with:

      1. deno run --allow-net webserver.ts

      webserver_legacy.ts

      1. deno run --allow-net webserver_legacy.ts