1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

add readme

This commit is contained in:
Nikolay Kim
2017-12-13 21:44:16 -08:00
parent c2751efa87
commit 406ef20262
2 changed files with 73 additions and 2 deletions

View File

@ -11,7 +11,7 @@ fn index(req: HttpRequest) -> String {
fn main() {
HttpServer::new(
Application::new()
|| Application::new()
.resource("/{name}", |r| r.f(index)))
.serve::<_, ()>("127.0.0.1:8080");
}
@ -34,7 +34,7 @@ fn main() {
* Transparent content compression/decompression (br, gzip, deflate)
* Configurable request routing
* Multipart streams
* Middlewares (Logger, Session included)
* Middlewares (Logger, Session, DefaultHeaders)
* Built on top of [Actix](https://github.com/actix/actix).
## HTTP/2