-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
FAQ
Rob Ede edited this page Jun 19, 2020
·
20 revisions
The examples repo (https://github.com/actix/examples) projects and links to community samples in readme.
#[actix_rt::main]
async fn main() -> std::io::Result<()> {
let res = awc::Client::new()
.get("https://crates.io")
.content_type("application/json")
.send()
.await
.unwrap()
.json::<HashMap<String, String>>()
.limit(65535 * 128)
.await
.unwrap();
Ok(())
}
Ask Questions in the Discord Server