1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00
Ami44 e18f9f3f3a Merge pull request #1 from actix/master
Update from original
2017-12-30 21:27:48 +01:00
2017-12-30 21:13:23 +01:00
2017-11-27 16:41:37 -08:00
2017-12-27 09:49:59 -08:00
2017-12-26 17:14:37 -08:00
2017-12-28 11:36:20 -08:00
2017-11-30 14:42:20 -08:00
2017-12-17 10:08:44 -08:00
2017-12-17 10:08:44 -08:00
2017-12-18 18:56:58 -08:00

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

Actix web is a small, fast, down-to-earth, open source rust web framework.

use actix_web::*;

fn index(req: HttpRequest) -> String {
    format!("Hello {}!", &req.match_info()["name"])
}

fn main() {
    HttpServer::new(
        || Application::new()
            .resource("/{name}", |r| r.f(index)))
        .bind("127.0.0.1:8080")?
        .start();
}

Documentation

Features

  • Supported HTTP/1.x and HTTP/2.0 protocols
  • Streaming and pipelining
  • Keep-alive and slow requests handling
  • WebSockets
  • Transparent content compression/decompression (br, gzip, deflate)
  • Configurable request routing
  • Graceful server shutdown
  • Multipart streams
  • Middlewares (Logger, Session, DefaultHeaders)
  • Built on top of Actix.

Benchmarks

Some basic benchmarks could be found in this respository.

Examples

License

This project is licensed under either of

at your option.

Analytics

Description
No description provided
Readme 31 MiB
Languages
Rust 98.5%
Just 1%
HTML 0.5%