cached-file-server v0.3.0

An HTTP server which caches a directory in memory and serves the file contents.

Cached Static File Server

Given a directory, this application reads all file contents into memory and then serves them up over HTTP when requested.

Note:

This application reads all the files in the directory into memory, so if you're serving a lot of large files, it will use a large amount of memory.

Installation

Download the static binary, or install crystal, download the source code, and run crystal build src/run.cr

Usage

Usage advice is offered by the --help command-line option.

Development

Improvements and advice are greatly welcome. Please open a pull request or issue with any way to make this application more effective and fast!

Contributing

  1. Fork it (https://github.com/dscottboggs/cached_static_server/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

cached-file-server

Owner
Statistic
  • 7
  • 0
  • 0
  • 0
  • 1
  • almost 5 years ago
  • January 7, 2020
License

MIT License

Links
Synced at

Sun, 24 Nov 2024 18:25:35 GMT

Languages