docs.rs failed to build deboa-tokio-0.1.0-beta.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
deboa-tokio
Description
deboa-tokio ("fine" portuguese slang) is a deboa implementation for tokio runtime.
Attention
This release has a major api change. Please check the migration guide for more information.
Features
- easily add, remove and update headers
- helpers to add basic and bearer auth
- set retries and timeout
- pluggable catchers (interceptors)
- pluggable compression (gzip, deflate, br)
- pluggable serialization (json, xml, msgpack)
- cookies support
- urlencoded and multipart forms
- comprehensive error handling
- response streaming
- upgrade support (websocket, etc.)
- runtime compatibility (tokio and smol)
- http1/2/3 support
Benchmark Results
As of the latest benchmark run, Deboa demonstrates competitive performance compared to Reqwest.
Get Request
Deboa |
Reqwest |
|
|---|---|---|
100 |
46.37 ms (✅ 1.00x) |
48.67 ms (✅ 1.05x slower) |
500 |
46.47 ms (✅ 1.00x) |
47.32 ms (✅ 1.02x slower) |
1000 |
46.36 ms (✅ 1.00x) |
47.34 ms (✅ 1.02x slower) |
Install
Either run from command line:
cargo add deboa-tokio http
Or add to your Cargo.toml:
= { = "0.0.9", = ["http1"] }
= "1.3.1"
Crate features
- http1
- http2 (default)
- http3
- rust-tls (default)
- native-tls
Usage
use ;
use Client;
use JsonBody;
use Method;
async
Create project from template
You can create a new project from the template using cargo generate:
cargo generate ararog/deboa-templates
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Author
Rogerio Pereira Araujo rogerio.araujo@gmail.com