A now defunct web server engine that is notable for its overuse of unsafe code, the memory safety bugs caused by that, and its deletion by its creator.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikolay Kim c7f3915779 update actix-service dep 9 months ago
.github/workflows Enable GitHub Actions and fix file URL behavior (#1232) 9 months ago
actix-cors update actix-service dep 9 months ago
actix-files update actix-service dep 9 months ago
actix-framed update actix-service dep 9 months ago
actix-http update actix-service dep 9 months ago
actix-identity update actix-service dep 9 months ago
actix-multipart update actix-service dep 9 months ago
actix-session update actix-service dep 9 months ago
actix-web-actors update changes 9 months ago
actix-web-codegen bump ver 9 months ago
awc update actix-service dep 9 months ago
examples update examples 10 months ago
src update actix-service dep 9 months ago
test-server update actix-service dep 9 months ago
tests rename App::register_data to App::app_data and HttpRequest::app_data returns Option<&T> instead of Option<&Data<T>> 9 months ago
.appveyor.yml update deps 2 years ago
.gitignore start working on guide 2 years ago
.travis.yml use actix_rt::test for test setup 10 months ago
CHANGES.md Make web::Data deref to Arc<T> #1214 9 months ago
CODE_OF_CONDUCT.md code of conduct 2 years ago
Cargo.toml update actix-service dep 9 months ago
LICENSE-APACHE add mit license 2 years ago
LICENSE-MIT spelling check 2 years ago
MIGRATION.md rename App::register_data to App::app_data and HttpRequest::app_data returns Option<&T> instead of Option<&Data<T>> 9 months ago
README.md fixes missing import in example (#1210) 9 months ago
rustfmt.toml copy actix-web2 1 year ago

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

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")?
        .start()
        .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.