#ask #content #value #com-api #content-type #application-json #close #zuck-gate

ZuckGate

Simple interface for making TCP-based HTTP requests in Rust. It supports both GET and POST requests with configurable headers and payloads.

8 releases

0.1.8 Dec 8, 2024
0.1.7 Dec 8, 2024
0.1.4 Nov 26, 2024

#524 in Web programming

Download history 9/week @ 2025-01-08 5/week @ 2025-02-05 2/week @ 2025-02-12 27/week @ 2025-02-19 7/week @ 2025-03-05 25/week @ 2025-03-12 21/week @ 2025-03-19 11/week @ 2025-04-09 15/week @ 2025-04-16

342 downloads per month
Used in 4 crates (via rusty-scrap)

MIT license

17KB
382 lines

Rust Crate: Ask

The Bolt crate provides a strongly typed and simple interface for making TCP-based HTTP requests in Rust. It supports both GET and POST requests with configurable headers and payloads.


Example: POST Request

This example demonstrates how to make a POST request with JSON content:


  let content = r#"{
      "key": "value"
  }"#;

  let ask = ZuckGate::new()
      .url("https://example.com/api")
      .post()
      .content_type("application/json")
      .content(&content)
      .connection(ZuckGate::Connections::Close)
      .ask();


  let ask = ZuckGate::new().url("").get().ask();

Dependencies

~0.1–9MB
~102K SLoC