ZuckGate

Crates.ioZuckGate
lib.rsZuckGate
version0.1.8
sourcesrc
created_at2024-11-25 16:35:28.956747
updated_at2024-12-08 14:51:27.131452
descriptionSimple interface for making TCP-based HTTP requests in Rust. It supports both `GET` and `POST` requests with configurable headers and payloads.
homepage
repositoryhttps://github.com/HashiramaSenjuhari/Ask
max_upload_size
id1460480
size17,110
Hariprasath (HashiramaSenjuhari)

documentation

https://docs.rs/Ask

README

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();

Commit count: 0

cargo fmt