Skip to content

stigsec/wisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wisp

wisp is a simple, lightweight and fast Rust-based HTTP file server. It is intended as a minimal replacement for Python's http.server.


Features

  • Serve static files from the current directory
  • Default port 8000, configurable with -p flag
  • Basic logging of HTTP requests
  • Supports GET requests for file downloads
  • Supports POST request to root / to list files (files only)
  • Minimal dependencies, single binary

Installation

Build from source

  1. Clone the repo:

    git clone https://github.com/stigsec/wisp.git
    cd wisp
  2. Build with Cargo:

    cargo build --release

Usage

Start serving files from the current directory on default port 8000:

wisp

Serve files on a custom port, e.g., 9000:

wisp -p 9000

Display help menu:

wisp -h

Examples

Download a file using GET:

curl http://localhost:8000/example.txt

List files with POST:

curl -X POST http://localhost:8000/

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.


Developed by stigsec.

About

Tiny Rust based HTTP file server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages