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.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Yuki Okushi 3a5b62b550
Add dependencies instruction (#1281)
il y a 6 mois
.github/workflows Tweak actions to use cache and not to be stuck on the way (#1264) il y a 7 mois
actix-cors allow to specify multi pattern for resources il y a 7 mois
actix-files Fixed documentation typo for actix-files (#1278) il y a 6 mois
actix-framed prep actix-framed release il y a 7 mois
actix-http Replace sha1 dependency with sha-1 (#1258) il y a 7 mois
actix-identity Fix panic with already borrowed: BorrowMutError #1263 il y a 7 mois
actix-multipart update actix-service dep il y a 7 mois
actix-session allow to specify multi pattern for resources il y a 7 mois
actix-web-actors update changes il y a 7 mois
actix-web-codegen bump ver il y a 7 mois
awc Rename HttpServer::start() to HttpServer::run() il y a 7 mois
examples Rename HttpServer::start() to HttpServer::run() il y a 7 mois
src Update doc comment for `HttpRequest::app_data` (#1265) il y a 7 mois
test-server update timeouts for test server il y a 7 mois
tests Rename HttpServer::start() to HttpServer::run() il y a 7 mois
.appveyor.yml update deps il y a 1 an
.gitignore start working on guide il y a 2 ans
.travis.yml use actix_rt::test for test setup il y a 8 mois
CHANGES.md Replace sha1 dependency with sha-1 (#1258) il y a 7 mois
CODE_OF_CONDUCT.md code of conduct il y a 2 ans
Cargo.toml add extra constraints il y a 7 mois
LICENSE-APACHE add mit license il y a 2 ans
LICENSE-MIT spelling check il y a 2 ans
MIGRATION.md Changes to Cors builder (#1266) il y a 7 mois
README.md Add dependencies instruction (#1281) il y a 6 mois
rustfmt.toml copy actix-web2 il y a 1 an

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.