diff options
author | lamp | 2023-03-05 21:37:45 +0000 |
---|---|---|
committer | lamp | 2023-03-05 21:37:45 +0000 |
commit | d4c3b70d6290c52f903e674e9957b979abd4ce07 (patch) | |
tree | ba415f0f85809ffe07dd17d83ed46e5c09f2c14d /README.md |
initmain
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..54071bf --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# tiny-serve +A small, fast, fully asynchronous, and concurrent HTTP/1.1 server for static content stored on the filesystem, written in Rust using `async_std` and `futures`. + +It uses a custom hand-written parser based on the relevant RFCs that sweeps over the message with a single byte of lookahead. The parser supports a reasonable subset of HTTP/1.1, but lacks some unnecessary grammar and such that are only used for optional, unimplemented HTTP/1.1 verbs. + +It accepts one command line argument, the port number to bind to: + +``` +tiny-serve 8080 +``` + +which defaults to port 8000 if not specified or invalid.
\ No newline at end of file |