Update usage (denoland/deno_std#2)
Original:
@@ -7,7 +7,12 @@ 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: "Hello World\n" });
+ req.respond({ body: new TextEncoder().encode("Hello World\n") });
+ }
}
+
+main();
```
