2 releases

0.1.1 Oct 12, 2024
0.1.0 Oct 12, 2024

#90 in HTTP server

Download history 153/week @ 2024-10-06 104/week @ 2024-10-13

257 downloads per month

GPL-3.0-or-later

33KB
149 lines

Miser: A Simple HTTP Server Implementation for Rust Beginners

GitHub

Project Introduction

Miser is a simple HTTP server implemented in Rust, designed as a learning resource and reference project for Rust beginners. Through this project, you can understand how to write a basic network server in Rust, handle HTTP requests, and return responses.

License

This project uses the GPL (GNU General Public License). The license file is located in the license directory of the project. Please read and comply with the terms of the license carefully.

Special Note: The zh_cn_translation_license file is an chinese translation of the GPL license, intended to help understand the contents of the license. However, this file does not have legal authority. If any misunderstanding or consequences arise due to this file, please take responsibility yourself. The project maintainers and creators are not responsible.

Building and Running

  1. Ensure you have Rust and Cargo installed.
  2. Clone this project locally: git clone <project repository address>.
  3. Enter the project directory: cd miser.
  4. Build the project: cargo build.
  5. Run the server: cargo run.

The server listens on localhost:25565 by default, and you can access it through a browser or curl.

Features

  • Supports basic HTTP GET requests.
  • Returns simple HTML responses.
  • Easy to extend and modify to add more features and complexity.

Contributions

Contributions to this project are welcome! You can help improve the project by submitting bug reports, feature suggestions, or code patches. Before submitting code, please ensure you comply with the terms of the GPL license and sign the project's contributor agreement (if any).

Notes

  • This project is a learning project and is not suitable for production environments.
  • When modifying and extending the project, please ensure you understand how the code works and follow Rust best practices.

We hope this project can be helpful to you! If you have any questions or suggestions, please feel free to contact the project maintainers.

Dependencies

~3.5–9MB
~75K SLoC