2 releases
0.1.1 | Oct 12, 2024 |
---|---|
0.1.0 | Oct 12, 2024 |
#165 in HTTP server
71 downloads per month
33KB
149 lines
Miser: A Simple HTTP Server Implementation for Rust Beginners
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
- Ensure you have Rust and Cargo installed.
- Clone this project locally:
git clone <project repository address>
. - Enter the project directory:
cd miser
. - Build the project:
cargo build
. - 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–9.5MB
~76K SLoC