rusty-request

Crates.iorusty-request
lib.rsrusty-request
version0.1.2
sourcesrc
created_at2024-11-05 11:10:37.95637
updated_at2024-11-05 11:12:55.050127
descriptionA lightweight Rust library for making HTTP GET requests.
homepagehttps://crates.io/crates/rusty_request
repositoryhttps://github.com/HashiramaSenjuhari/rusty_request
max_upload_size
id1436379
size38,211
Hariprasath (HashiramaSenjuhari)

documentation

https://docs.rs/rusty_request/latest/rusty_request/

README

rusty_request

rusty_request is a lightweight Rust library designed to simplify making HTTP GET requests. Whether you are fetching data from a REST API or a web resource, rusty_request provides an easy and efficient way to handle GET requests.

Features

  • Simple API: Intuitive and easy-to-use functions for making GET requests.
  • Error Handling: Built-in mechanisms to handle common HTTP errors gracefully.
  • Response Parsing: Automatically parses JSON responses into Rust data structures.
  • Timeout Support: Configurable timeouts for requests to prevent hanging on unresponsive servers.
  • Custom Headers: Support for adding custom headers to your requests.
  • Cross-Platform: Works seamlessly across different operating systems.

Installation

Add the following line to your Cargo.toml file:

[dependencies]
rusty_request = "0.1.1"

  use request::Get;

  let get = Get::new(&stream);
  get.path("/api/path").content(//data here).send();

Commit count: 0

cargo fmt