From 8aa39e1afb83deca0c86ca5adcedf3c983bdca2d Mon Sep 17 00:00:00 2001 From: Cameron Dershem Date: Wed, 12 Jun 2019 04:51:45 -0400 Subject: [PATCH] begin update of docs to actix-web 1.0 --- config.toml | 2 +- content/docs/getting-started.md | 5 +++-- content/docs/installation.md | 4 ++-- examples/application/Cargo.toml | 2 +- examples/getting-started/Cargo.toml | 2 +- examples/getting-started/src/main.rs | 30 ++++++++++++++++++++++------ examples/server/Cargo.toml | 2 +- examples/url-dispatch/Cargo.toml | 2 +- layouts/index.html | 18 ++++++++--------- 9 files changed, 43 insertions(+), 24 deletions(-) diff --git a/config.toml b/config.toml index 5f25122..e815c7e 100644 --- a/config.toml +++ b/config.toml @@ -16,4 +16,4 @@ baseURL = "https://actix.rs" [params] actixVersion = "0.7" -actixWebVersion = "0.7" +actixWebVersion = "1.0" diff --git a/content/docs/getting-started.md b/content/docs/getting-started.md index b0833e6..50b6a34 100644 --- a/content/docs/getting-started.md +++ b/content/docs/getting-started.md @@ -27,6 +27,7 @@ actix-web = "{{< actix-version "actix-web" >}}" In order to implement a web server, we first need to create a request handler. + A request handler is a function that accepts an `HttpRequest` instance as its only parameter and returns a type that can be converted into `HttpResponse`: @@ -34,12 +35,12 @@ Filename: `src/main.rs` {{< include-example example="getting-started" section="setup" >}} +