1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-01-17 20:56:08 +00:00
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
Find a file
2018-04-05 19:21:29 -04:00
examples
guide
src
tests
tools/wsload
.appveyor.yml
.gitignore
.travis.yml
build.rs
Cargo.toml
CHANGES.md
CODE_OF_CONDUCT.md
LICENSE-APACHE
LICENSE-MIT
Makefile
README.md

Actix web Build Status Build status codecov crates.io Join the chat at https://gitter.im/actix/actix

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

Documentation

Example

extern crate actix_web;
use actix_web::{App, HttpServer, Path};

fn index(info: Path<(String, u32)>) -> String {
    format!("Hello {}! id:{}", info.0, info.1)
}

fn main() {
    HttpServer::new(
        || App::new()
            .resource("/{name}/{id}/index.html", |r| r.with(index)))
        .bind("127.0.0.1:8080").unwrap()
        .run();
}

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.