#http #status #url #http-client #web-server

ghttp

A Rust crate for building HTTP clients and servers with a focus on performance, ease of use, and global configurations

3 releases (breaking)

0.2.0 Nov 15, 2024
0.1.0 Oct 24, 2024
0.0.0 Oct 14, 2024

#1981 in Web programming

Download history 161/week @ 2024-10-14 114/week @ 2024-10-21 13/week @ 2024-10-28 19/week @ 2024-11-04 115/week @ 2024-11-11 32/week @ 2024-11-18 3/week @ 2024-11-25 11/week @ 2024-12-09

58 downloads per month
Used in gprs

MIT/Apache

10KB
89 lines



githubcrates.iodocs.rslicense

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

github

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.5–3.5MB
~64K SLoC