mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
refactor reply handling
This commit is contained in:
@ -31,7 +31,7 @@ and returns a type that can be converted into `HttpResponse`:
|
||||
|
||||
```rust,ignore
|
||||
extern crate actix_web;
|
||||
use actix_web::prelude::*;
|
||||
use actix_web::*;
|
||||
|
||||
fn index(req: HttpRequest) -> &'static str {
|
||||
"Hello world!"
|
||||
@ -62,7 +62,7 @@ Here is full source of main.rs file:
|
||||
```rust
|
||||
extern crate actix;
|
||||
extern crate actix_web;
|
||||
use actix_web::prelude::*;
|
||||
use actix_web::*;
|
||||
|
||||
fn index(req: HttpRequest) -> &'static str {
|
||||
"Hello world!"
|
||||
|
@ -40,7 +40,7 @@ extern crate actix;
|
||||
extern crate actix_web;
|
||||
|
||||
use std::cell::Cell;
|
||||
use actix_web::prelude::*;
|
||||
use actix_web::*;
|
||||
|
||||
// This struct represents state
|
||||
struct AppState {
|
||||
|
Reference in New Issue
Block a user