mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
Actix Web
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
// This is a contrived example intended to illustrate actix-web features.
|
||||
// This is a contrived example intended to illustrate Actix Web features.
|
||||
// *Imagine* that you have a process that involves 3 steps. The steps here
|
||||
// are dumb in that they do nothing other than call an
|
||||
// httpbin endpoint that returns the json that was posted to it. The intent
|
||||
// here is to illustrate how to chain these steps together as futures and return
|
||||
// a final result in a response.
|
||||
//
|
||||
// Actix-web features illustrated here include:
|
||||
// Actix Web features illustrated here include:
|
||||
// 1. handling json input param
|
||||
// 2. validating user-submitted parameters using the 'validator' crate
|
||||
// 2. actix-web client features:
|
||||
// 2. `awc` client features:
|
||||
// - POSTing json body
|
||||
// 3. chaining futures into a single response used by an async endpoint
|
||||
|
||||
|
Reference in New Issue
Block a user