| Crates.io | http-kit |
| lib.rs | http-kit |
| version | 0.4.2 |
| created_at | 2025-07-16 17:01:52.183771+00 |
| updated_at | 2025-12-09 07:52:54.015041+00 |
| description | A flexible and ergonomic HTTP toolkit for Rust with async support, middleware, and zero-copy body handling |
| homepage | https://github.com/lexoooooo/http-kit |
| repository | https://github.com/lexoooooo/http-kit |
| max_upload_size | |
| id | 1755850 |
| size | 155,189 |
A flexible and ergonomic HTTP toolkit for Rust that provides high-level abstractions for HTTP operations while maintaining performance and type safety.
futures-lite for async I/O operationsjson - JSON serialization/deserialization via serde_jsonform - Form data handling via serde_urlencodedfs - File upload support with MIME type detectionmime - MIME type parsing and manipulationhttp_body - Implementation of http_body traitsuse http_kit::{Request, Response, Result};
async fn handler(mut req: Request) -> Result<Response> {
// Parse JSON request body
let user = req.into_json().await?;
// Create JSON response
Response::empty()
.status(200)
.json(&user)
}
This project is licensed under the MIT license.