Skip to content
Actix web is a small, pragmatic, and extremely fast rust web framework.
Rust
Branch: master
Clone or download

Latest commit

JohnTitor Merge pull request #1535 from JohnTitor/next-files
files: Bump up to 0.3.0-alpha.1
Latest commit 11a9fda May 24, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add links to Gitter on the issue template May 22, 2020
actix-cors Remove outdated members May 17, 2020
actix-files files: Bump up to 0.3.0-alpha.1 May 23, 2020
actix-framed Update `actix-http-test` dependency to 2.0.0-alpha.1 May 23, 2020
actix-http Update `actix-http-test` dependency to 2.0.0-alpha.1 May 23, 2020
actix-identity Remove outdated members May 17, 2020
actix-multipart Update `actix-web` dependency to 3.0.0-alpha.3 May 21, 2020
actix-session Remove outdated members May 17, 2020
actix-web-actors Update `actix-web` dependency to 3.0.0-alpha.3 May 21, 2020
actix-web-codegen codegen: Bump up to 0.2.2 May 23, 2020
awc Update `actix-http-test` dependency to 2.0.0-alpha.1 May 23, 2020
benches web: Minimize `futures` dependencies May 18, 2020
examples Fix/suppress warnings Feb 7, 2020
src Run rustfmt May 21, 2020
test-server Update `actix-http-test` dependency to 2.0.0-alpha.1 May 23, 2020
tests Run rustfmt May 21, 2020
.appveyor.yml update deps Oct 9, 2018
.gitignore start working on guide Nov 28, 2017
CHANGES.md web: Bump up to 3.0.0-alpha.3 May 21, 2020
CODE_OF_CONDUCT.md code of conduct Jan 21, 2018
Cargo.toml codegen: Bump up to 0.2.2 May 23, 2020
LICENSE-APACHE add mit license Dec 17, 2017
LICENSE-MIT spelling check Mar 24, 2018
MIGRATION.md Remove content_length from ResponseBuilder (#1491) May 18, 2020
README.md bump msrv in ci and readme May 13, 2020
codecov.yml Remove codecoverage for tests and examples (#1299) Jan 23, 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.

  • Supported HTTP/1.x and HTTP/2.0 protocols
  • Streaming and pipelining
  • Keep-alive and slow requests handling
  • Client/server WebSockets support
  • Transparent content compression/decompression (br, gzip, deflate)
  • Configurable request routing
  • Multipart streams
  • Static assets
  • SSL support with OpenSSL or Rustls
  • Middlewares (Logger, Session, CORS, etc)
  • Includes an asynchronous HTTP client
  • Supports Actix actor framework
  • Supports Rust 1.40+

Docs

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.