1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 14:49:20 +02:00

rename HttpResponse

This commit is contained in:
Nikolay Kim
2018-10-05 11:04:59 -07:00
parent d53f3d7187
commit 8c2244dd88
16 changed files with 266 additions and 287 deletions

View File

@ -11,7 +11,7 @@ use actix_net::server::Server;
use actix_web::{client, test};
use futures::future;
use actix_http::{h1, Error, HttpResponse, KeepAlive, ServiceConfig};
use actix_http::{h1, Error, KeepAlive, Response, ServiceConfig};
#[test]
fn test_h1_v2() {
@ -29,7 +29,7 @@ fn test_h1_v2() {
h1::H1Service::new(settings, |req| {
println!("REQ: {:?}", req);
future::ok::<_, Error>(HttpResponse::Ok().finish())
future::ok::<_, Error>(Response::Ok().finish())
})
}).unwrap()
.run();