Skip to content
Rob Ede edited this page Jun 19, 2020 · 20 revisions

Where can I see examples of project structure?

The examples repo (https://github.com/actix/examples) projects and links to community samples in readme.

[awc] How can I increase the payload limit for response bodies?

#[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(())
}
Clone this wiki locally