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.
Yuki Okushi 3a5b62b550
Add dependencies instruction (#1281)
7 kuukautta sitten
.github/workflows Tweak actions to use cache and not to be stuck on the way (#1264) 7 kuukautta sitten
actix-cors allow to specify multi pattern for resources 7 kuukautta sitten
actix-files Fixed documentation typo for actix-files (#1278) 7 kuukautta sitten
actix-framed prep actix-framed release 7 kuukautta sitten
actix-http Replace sha1 dependency with sha-1 (#1258) 7 kuukautta sitten
actix-identity Fix panic with already borrowed: BorrowMutError #1263 7 kuukautta sitten
actix-multipart update actix-service dep 7 kuukautta sitten
actix-session allow to specify multi pattern for resources 7 kuukautta sitten
actix-web-actors update changes 7 kuukautta sitten
actix-web-codegen bump ver 7 kuukautta sitten
awc Rename HttpServer::start() to HttpServer::run() 7 kuukautta sitten
examples Rename HttpServer::start() to HttpServer::run() 7 kuukautta sitten
src Update doc comment for `HttpRequest::app_data` (#1265) 7 kuukautta sitten
test-server update timeouts for test server 7 kuukautta sitten
tests Rename HttpServer::start() to HttpServer::run() 7 kuukautta sitten
.appveyor.yml update deps 1 vuosi sitten
.gitignore start working on guide 2 vuotta sitten
.travis.yml use actix_rt::test for test setup 8 kuukautta sitten
CHANGES.md Replace sha1 dependency with sha-1 (#1258) 7 kuukautta sitten
CODE_OF_CONDUCT.md code of conduct 2 vuotta sitten
Cargo.toml add extra constraints 7 kuukautta sitten
LICENSE-APACHE add mit license 2 vuotta sitten
LICENSE-MIT spelling check 2 vuotta sitten
MIGRATION.md Changes to Cors builder (#1266) 7 kuukautta sitten
README.md Add dependencies instruction (#1281) 7 kuukautta sitten
rustfmt.toml copy actix-web2 1 vuosi sitten

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.