HteaPot HTTP Server
Spanish | English
HteaPot is a simple HTTP server written in Rust. It allows you to serve static files and handle basic HTTP requests.
Features
- Serve static files from a specified root directory
- Configurable server port and host
- Basic logging of incoming requests
Usage
- Clone the repository:
- Build the project:
Run the server with a configuration file:
Configuration
You can configure the server using a TOML file. Here's an example configuration:
[]
= 8081 # The port on which the server will listen for incoming connections.
= "localhost" # The host address to bind the server to.
= "public" # The root directory from which to serve files.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.