summaryrefslogtreecommitdiff
path: root/README.md
blob: ee6009304f8d9f6cb8d494f9112de0048171a910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Deno Networking Libraries

[![Build Status](https://travis-ci.com/denoland/net.svg?branch=master)](https://travis-ci.com/denoland/net)

Usage:

```typescript
import { serve } from "https://deno.land/x/net/http.ts";
const s = serve("0.0.0.0:8000");

async function main() {
  for await (const req of s) {
    req.respond({ body: new TextEncoder().encode("Hello World\n") });
  }
}

main();
```