1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
2018-12-09 15:35:26 -05:00
.travis.yml Simplify travis. 2018-11-08 11:58:41 -05:00
buffer.ts Use Uint8Array instead of ArrayBufferView 2018-11-12 14:09:50 -05:00
buffer_test.ts Format 2018-12-06 17:18:10 -05:00
bufio.ts Basic http demo working. 2018-11-09 17:23:01 -05:00
bufio_test.ts Format 2018-12-06 17:18:10 -05:00
file_server.ts Simple file server (denoland/deno_std#11) 2018-12-09 15:35:26 -05:00
http.ts Simple file server (denoland/deno_std#11) 2018-12-09 15:35:26 -05:00
http_bench.ts Relative import for http_bench.ts 2018-12-06 17:21:55 -05:00
http_status.ts Basic http demo working. 2018-11-09 17:23:01 -05:00
iotest.ts Use Uint8Array instead of ArrayBufferView 2018-11-12 14:09:50 -05:00
Makefile Add BufReader.peek() 2018-11-08 04:01:20 -05:00
README.md Update usage (denoland/deno_std#2) 2018-11-30 23:40:04 -08:00
test.ts First pass at TextProtoReader. 2018-11-08 12:26:20 -05:00
textproto.ts Use Utf8 instead of ASCII in TextDecoder 2018-12-06 14:36:44 -05:00
textproto_test.ts Add tests for TextProtoReader.readMIMEHeader() 2018-11-08 12:58:43 -05:00
util.ts First pass at TextProtoReader. 2018-11-08 12:26:20 -05:00

Deno Networking Libraries

Build Status

Usage:

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();