Skip to content
Actix web is a small, pragmatic, and extremely fast rust web framework.
Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Tweak actions to use cache and not to be stuck on the way (#1264) Jan 9, 2020
actix-cors allow to specify multi pattern for resources Dec 25, 2019
actix-files Fixed documentation typo for actix-files (#1278) Jan 15, 2020
actix-framed prep actix-framed release Dec 25, 2019
actix-http Replace sha1 dependency with sha-1 (#1258) Jan 10, 2020
actix-identity Fix panic with already borrowed: BorrowMutError #1263 Jan 10, 2020
actix-multipart update actix-service dep Dec 22, 2019
actix-session allow to specify multi pattern for resources Dec 25, 2019
actix-web-actors update changes Dec 20, 2019
actix-web-codegen bump ver Dec 20, 2019
awc Rename HttpServer::start() to HttpServer::run() Dec 22, 2019
examples Rename HttpServer::start() to HttpServer::run() Dec 22, 2019
src Update doc comment for `HttpRequest::app_data` (#1265) Jan 10, 2020
test-server update timeouts for test server Dec 25, 2019
tests Rename HttpServer::start() to HttpServer::run() Dec 22, 2019
.appveyor.yml update deps Oct 9, 2018
.gitignore start working on guide Nov 28, 2017
.travis.yml use actix_rt::test for test setup Nov 26, 2019
CHANGES.md Replace sha1 dependency with sha-1 (#1258) Jan 10, 2020
CODE_OF_CONDUCT.md code of conduct Jan 21, 2018
Cargo.toml add extra constraints Jan 10, 2020
LICENSE-APACHE add mit license Dec 17, 2017
LICENSE-MIT spelling check Mar 24, 2018
MIGRATION.md Changes to Cors builder (#1266) Jan 10, 2020
README.md Add dependencies instruction (#1281) Jan 16, 2020
rustfmt.toml copy actix-web2 Mar 2, 2019

README.md

Actix web

Actix web is a small, pragmatic, and extremely fast rust web framework

Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix Documentation Download Version License

Website | Chat | Examples


Actix web is a simple, pragmatic and extremely fast web framework for Rust.

Example

Dependencies:

[dependencies]
actix-web = "2"
actix-rt = "1"

Code:

use actix_web::{get, web, App, HttpServer, Responder};

#[get("/{id}/{name}/index.html")]
async fn index(info: web::Path<(u32, String)>) -> impl Responder {
    format!("Hello {}! id:{}", info.1, info.0)
}

#[actix_rt::main]
async fn main() -> std::io::Result<()> {
    HttpServer::new(|| App::new().service(index))
        .bind("127.0.0.1:8080")?
        .run()
        .await
}

More examples

You may consider checking out this directory for more examples.

Benchmarks

License

This project is licensed under either of

at your option.

Code of Conduct

Contribution to the actix-web crate is organized under the terms of the Contributor Covenant, the maintainer of actix-web, @fafhrd91, promises to intervene to uphold that code of conduct.

You can’t perform that action at this time.