1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-12 19:57:38 +01:00
Yuki Okushi 5da9e277a2
Merge pull request #1399 from JohnTitor/new-http
Release actix-http 2.0.0-alpha.2
2020-03-08 01:47:40 +09:00
2020-02-14 07:31:29 +09:00
2020-03-08 00:50:20 +09:00
2020-03-08 00:50:20 +09:00
2020-03-08 00:52:39 +09:00
2020-02-27 09:53:27 +09:00
2020-02-25 08:42:39 +09:00
2020-03-08 00:50:20 +09:00
2020-02-08 02:20:01 +09:00
2020-02-27 22:39:11 +09:00
2020-03-08 00:50:20 +09:00
2018-10-08 21:58:37 -07:00
2017-11-27 16:41:37 -08:00
2020-03-08 00:50:20 +09:00
2020-03-04 15:20:14 +09:00
2018-01-21 15:29:02 -08:00
2017-12-17 10:08:44 -08:00
2018-03-24 09:35:52 +03:00
2020-01-16 23:17:17 +09:00
2019-03-01 22:51:32 -08:00

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.

Description
Actix web is a small, pragmatic, and extremely fast rust web framework. https://actix.rs
Readme 25 MiB
Languages
Rust 99.4%
Shell 0.4%
Just 0.2%