Packages / rupm

http-tools 0.1.0

A small blocking HTTP client: GET and POST text or JSON with timeouts and retries

Install

cargo add http-tools --registry rupm

In Ruststudio: Packages, search for http-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# http-tools

A small blocking HTTP client: GET and POST text or JSON with timeouts and retries

Add it with `rupm add http-tools` (or `cargo add http-tools --registry rupm`).

```rust
let page = http_tools::get_text("https://example.org")?;
let item: serde_json::Value = http_tools::get_json("https://api.example.org/items/1")?;
let made: serde_json::Value = http_tools::post_json("https://api.example.org/items", &serde_json::json!({ "name": "x" }))?;
```