The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
import { serve } from "https://deno.land/std@0.87.0/http/server.ts"; | |
const port = 8080; | |
const server = serve({ port }); | |
console.log(`Server is accessible @ http://localhost:${port}/`); | |
for await (const req of server) { | |
req.respond({ body: `Hello World!` }) | |
} |
```console | |
Channel overview | |
``` | |
Faq: Information about this Discord group, and also some useful links. | |
Dev: Only for the development of Deno itself. | |
Help: If you need assistance with Deno. | |
General: Relevant discussions about Deno, stay on topic. | |
Off-topic: As the name implies, everything which doesn't fit into the above. | |
```console |