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
2018-12-12 12:47:58 -05:00
.travis.yml Serve directory for file server & Fix bufio flush bug (denoland/deno_std#15) 2018-12-11 17:56:32 -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 Serve directory for file server & Fix bufio flush bug (denoland/deno_std#15) 2018-12-11 17:56:32 -05:00
bufio_test.ts Format 2018-12-06 17:18:10 -05:00
file_server.ts Fix file server crash (denoland/deno_std#20) 2018-12-12 12:47:58 -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 Serve directory for file server & Fix bufio flush bug (denoland/deno_std#15) 2018-12-11 17:56:32 -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 Fix travis badge 2018-12-12 12:46:02 -05:00
test.ts Serve directory for file server & Fix bufio flush bug (denoland/deno_std#15) 2018-12-11 17:56:32 -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();

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"