3 releases (breaking)
new 0.2.0 | Nov 15, 2024 |
---|---|
0.1.0 | Oct 24, 2024 |
0.0.0 | Oct 14, 2024 |
#1898 in Web programming
307 downloads per month
Used in gprs
10KB
89 lines
GHTTP (Global HTTP)
A Rust crate for building HTTP clients and servers with a focus on performance, ease of use, and global configurations
Features
- Global Configuration: Simplifies setting and sharing default configurations across multiple HTTP requests, reducing boilerplate code.
- Flexible Client Creation: Enables the creation of customizable HTTP clients tailored to specific needs.
- Support for Various Protocols: Compatible with HTTP/1.1 and HTTP/2, enhancing flexibility for different use cases.
- Broad Coverage: Supports a wide range of HTTP status codes, providing a comprehensive framework for understanding and managing various web server responses effectively. This coverage facilitates seamless integration and error handling for developers.
Goals
- Status Code Implementation
- Custom Status Handling
- Expand Accessibility
- User-Friendly API
- No Dependencies
Installation
Run the following Cargo command in your project directory:
cargo add ghttp
Or add the following line to your Cargo.toml:
[dependencies]
ghttp = "MAJOR.MINOR.PATCH" # Replace with the latest version
Changelog
Documentation
For a detailed API reference, visit the GHTTP Documentation.
Contributing
Contributions are welcome! If you have suggestions or improvements, feel free to submit an issue or a pull request.
License
This project is licensed under the MIT or Apache 2.0 License - see the LICENSE file for details.
Author Dr. Montasir Mirghani
Dependencies
~2.6–4MB
~66K SLoC