1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
zhmushan 79a1de9b14 fix statusCode
Original: 5fbbc2c46c
2018-12-04 18:13:11 -08: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 Use https instead of http. 2018-11-07 23:22:33 -05:00
bufio.ts Basic http demo working. 2018-11-09 17:23:01 -05:00
bufio_test.ts Use Uint8Array instead of ArrayBufferView 2018-11-12 14:09:50 -05:00
file_server.ts First pass at bufio.read tests. 2018-11-07 14:17:36 -05:00
http.ts fix statusCode 2018-12-04 18:13:11 -08:00
http_status.ts Basic http demo working. 2018-11-09 17:23:01 -05:00
http_test.ts Use Uint8Array instead of ArrayBufferView 2018-11-12 14:09:50 -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 Basic http demo working. 2018-11-09 17:23:01 -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();