Go to file
Rob Ede 79f2dced18
optimize bytes and string payload extractors
removes boxed futures
2020-12-16 22:03:55 +00:00
.github
actix-files
actix-http Intradoc links conversion (#1827) 2020-12-13 13:28:39 +00:00
actix-http-test Intradoc links conversion (#1827) 2020-12-13 13:28:39 +00:00
actix-multipart Simplify wake up of task (#1826) 2020-12-12 20:07:06 +00:00
actix-web-actors
actix-web-codegen Intradoc links conversion (#1827) 2020-12-13 13:28:39 +00:00
awc Intradoc links conversion (#1827) 2020-12-13 13:28:39 +00:00
benches
docs/graphs
examples
src optimize bytes and string payload extractors 2020-12-16 22:03:55 +00:00
tests
.gitignore
CHANGES.md
CODE_OF_CONDUCT.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
MIGRATION.md
README.md
codecov.yml
rustfmt.toml

README.md

Actix web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

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

Features

Documentation

Example

Dependencies:

[dependencies]
actix-web = "3"

Code:

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

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

#[actix_web::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

One of the fastest web frameworks available according to the TechEmpower Framework Benchmark.

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 maintainers of Actix web, promises to intervene to uphold that code of conduct.