A meat and potatoes HTTP server written in ZSH.
flag/option | description |
---|---|
-s (--static ),-h (--html ),-f (--file ) |
Required server type. |
-p --port |
Optional port number (default is 1234 ). |
-v --verbose |
Print diagnostics. |
- Separate query string, split parameters into an associative array
- Separate hash
#
- Separate hash
- add help option
-h
,--help
- Read response
- file server
- list files
- list directories
- navigate directories
- server files
- images
- PNG
- JPEG
- GIF
- WEBP
- SVG
- JS
- CSS
- JSON
- YAML
- images
- Use Z shell TCP module
- Support darwin
- HTTP 2.0 support
By NASA/EPIC, edit by Tdadamemd - http://epic.gsfc.nasa.gov/#2015-09-25, Public Domain, Link