0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
A modern runtime for JavaScript and TypeScript. https://deno.com/
Find a file
2018-12-17 22:57:45 -05:00
.travis.yml ci: update deno version to v0.2.3 2018-12-14 19:11:31 -05:00
bufio.ts Add BufReader.readFull (denoland/deno_std#24) 2018-12-17 22:57:45 -05:00
bufio_test.ts Add BufReader.readFull (denoland/deno_std#24) 2018-12-17 22:57:45 -05:00
file_server.ts First pass at streaming http response (denoland/deno_std#16) 2018-12-17 11:49:10 -05:00
file_server_test.ts Serve directory for file server & Fix bufio flush bug (denoland/deno_std#15) 2018-12-11 17:56:32 -05:00
http.ts First pass at streaming http response (denoland/deno_std#16) 2018-12-17 11:49:10 -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
http_test.ts Remove buffer.ts and use the one built in to deno. 2018-12-17 22:40:42 -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 Fix travis badge 2018-12-12 12:46:02 -05:00
test.ts Add BufReader.readFull (denoland/deno_std#24) 2018-12-17 22:57:45 -05:00
textproto.ts Use Utf8 instead of ASCII in TextDecoder 2018-12-06 14:36:44 -05:00
textproto_test.ts Remove buffer.ts and use the one built in to deno. 2018-12-17 22:40:42 -05:00
util.ts Remove buffer.ts and use the one built in to deno. 2018-12-17 22:40:42 -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();

File Server

A small program for serving local files over HTTP.

Add the following to your .bash_profile

alias file_server="deno https://deno.land/x/net/file_server.ts --allow-net"