1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 01:51:23 +02:00

refactor reply handling

This commit is contained in:
Nikolay Kim
2017-11-28 19:49:17 -08:00
parent 6f5b58b691
commit afeecea05f
19 changed files with 167 additions and 144 deletions

View File

@ -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!"

View File

@ -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 {