1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-03-16 05:02:43 +01:00
Aaron Hill e90950fee1
Re-apply commit 2cf7b3ad20fb823314426a5e33b0805045ec1d8a
This ended up getting reverted by #1367, which re-introduced an unsound
use of `Pin::new_unchecked`

See my original PR #1374 for the reasoning behind this change.
2020-03-04 11:27:58 -05:00
2020-02-14 07:31:29 +09:00
2020-02-27 09:53:27 +09:00
2020-02-25 08:42:39 +09:00
2020-03-04 15:11:31 +09:00
2020-02-08 02:20:01 +09:00
2020-02-27 22:39:11 +09:00
2020-03-04 15:20:14 +09:00
2018-10-08 21:58:37 -07:00
2017-11-27 16:41:37 -08:00
2020-03-04 15:11:31 +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 29 MiB
Languages
Rust 99.4%
Shell 0.4%
Just 0.2%