Spanish | English
HteaPot es un servidor HTTP simple escrito en Rust. Te permite servir archivos estáticos y manejar solicitudes HTTP básicas.
- Servir archivos estáticos desde un directorio raíz especificado
- Puerto y host del servidor configurables
- Registro básico de solicitudes entrantes
- Clonar el repositorio:
git clone <repository_url>
- Compilar el proyecto:
cargo build --release
Ejecutar el servidor con un archivo de configuración:
Copy code
./target/release/hteapot <config_file_path>
Puedes configurar el servidor usando un archivo TOML. Aquí tienes un ejemplo de configuración:
[HTEAPOT]
port = 8081 # The port on which the server will listen for incoming connections.
host = "localhost" # The host address to bind the server to.
root = "public" # The root directory from which to serve files.
¡Las contribuciones son bienvenidas! Siéntete libre de abrir problemas o enviar solicitudes de extracción.
Este proyecto está licenciado bajo la Licencia MIT - consulta el archivo LICENSE para más detalles.