| Crates.io | ZuckGate |
| lib.rs | ZuckGate |
| version | 0.1.8 |
| created_at | 2024-11-25 16:35:28.956747+00 |
| updated_at | 2024-12-08 14:51:27.131452+00 |
| description | Simple interface for making TCP-based HTTP requests in Rust. It supports both `GET` and `POST` requests with configurable headers and payloads. |
| homepage | |
| repository | https://github.com/HashiramaSenjuhari/Ask |
| max_upload_size | |
| id | 1460480 |
| size | 17,110 |
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.
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();