1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
Ryan Dahl c5871cb996 Format
Original: f3bce9c7b8
2018-12-06 17:18:10 -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 First pass at bufio.read tests. 2018-11-07 14:17:36 -05:00
http.ts Unblock server on multiple HTTP requests (denoland/deno_std#3) 2018-12-06 16:08:21 -05:00
http_status.ts Basic http demo working. 2018-11-09 17:23:01 -05:00
http_test.ts Unblock server on multiple HTTP requests (denoland/deno_std#3) 2018-12-06 16:08:21 -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();