mirror of
https://github.com/actix/actix-website
synced 2024-11-28 02:22:57 +01:00
Merge pull request #95 from snoyberg/master
Add Responder to use statement
This commit is contained in:
commit
bb0fdaf1e9
@ -39,7 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="actix-content">
|
<div class="actix-content">
|
||||||
{{ highlight `use actix_web::{web, App, HttpRequest, HttpServer};
|
{{ highlight `use actix_web::{web, App, HttpRequest, HttpServer, Responder};
|
||||||
|
|
||||||
fn greet(req: HttpRequest) -> impl Responder {
|
fn greet(req: HttpRequest) -> impl Responder {
|
||||||
let name = req.match_info().get("name").unwrap_or("World");
|
let name = req.match_info().get("name").unwrap_or("World");
|
||||||
|
Loading…
Reference in New Issue
Block a user