Go to file
Nikolay Kim 9f421b81b8 fix non-ssl connector 2019-04-19 18:10:53 -07:00
actix-files make ServiceRequest::from_parts private, as it is not safe to create from parts 2019-04-18 16:03:13 -07:00
actix-framed update tests 2019-04-18 21:28:23 -07:00
actix-http fix non-ssl connector 2019-04-19 18:10:53 -07:00
actix-multipart update dependencies 2019-04-16 11:17:29 -07:00
actix-session drop chrono and use i64 for max age 2019-04-19 17:23:17 -07:00
actix-web-actors update dependencies 2019-04-16 11:17:29 -07:00
actix-web-codegen update dependencies 2019-04-16 11:17:29 -07:00
awc update deps 2019-04-19 18:06:34 -07:00
examples
src drop chrono and use i64 for max age 2019-04-19 17:23:17 -07:00
test-server prepare actix-http-test release 2019-04-16 11:02:26 -07:00
tests more tests 2019-04-17 17:48:25 -07:00
.appveyor.yml
.gitignore
.travis.yml
CHANGES.md drop chrono and use i64 for max age 2019-04-19 17:23:17 -07:00
CODE_OF_CONDUCT.md
Cargo.toml drop chrono and use i64 for max age 2019-04-19 17:23:17 -07:00
LICENSE-APACHE
LICENSE-MIT
MIGRATION.md update version 2019-04-19 13:55:36 -07:00
README.md
rustfmt.toml

README.md

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

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

Documentation & community resources

Example

use actix_web::{web, App, HttpServer, Responder};

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

fn main() -> std::io::Result<()> {
    HttpServer::new(
        || App::new().service(
              web::resource("/{id}/{name}/index.html").to(index)))
        .bind("127.0.0.1:8080")?
        .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.