Actori web

Actori web is a small, pragmatic, and extremely fast rust web framework

[![Build Status](https://travis-ci.org/actori/actori-web.svg?branch=master)](https://travis-ci.org/actori/actori-web) [![codecov](https://codecov.io/gh/actori/actori-web/branch/master/graph/badge.svg)](https://codecov.io/gh/actori/actori-web) [![crates.io](https://meritbadge.herokuapp.com/actori-web)](https://crates.io/crates/actori-web) [![Join the chat at https://gitter.im/actori/actori](https://badges.gitter.im/actori/actori.svg)](https://gitter.im/actori/actori?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Documentation](https://docs.rs/actori-web/badge.svg)](https://docs.rs/actori-web) [![Download](https://img.shields.io/crates/d/actori-web.svg)](https://crates.io/crates/actori-web) [![Version](https://img.shields.io/badge/rustc-1.39+-lightgray.svg)](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html) ![License](https://img.shields.io/crates/l/actori-web.svg)

Website | Chat | Examples


Actori web is a simple, pragmatic and extremely fast web framework for Rust.

Example

Dependencies:

toml [dependencies] actori-web = "2" actori-rt = "1"

Code:

```rust use actori_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) }

[actori_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 actori-web crate is organized under the terms of the Contributor Covenant, the maintainer of actori-web, @fafhrd91, promises to intervene to uphold that code of conduct.