mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-23 16:21:06 +01:00
prep actix-framed release
This commit is contained in:
parent
f86ce0390e
commit
7b3c99b933
@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous",
|
||||
"web-programming::websocket"]
|
||||
license = "MIT/Apache-2.0"
|
||||
edition = "2018"
|
||||
workspace =".."
|
||||
|
||||
[lib]
|
||||
name = "actix_framed"
|
||||
@ -22,7 +21,7 @@ path = "src/lib.rs"
|
||||
[dependencies]
|
||||
actix-codec = "0.2.0"
|
||||
actix-service = "1.0.1"
|
||||
actix-router = "0.2.0"
|
||||
actix-router = "0.2.1"
|
||||
actix-rt = "1.0.0"
|
||||
actix-http = "1.0.1"
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
# Changes
|
||||
|
||||
## [0.3.0] - 2019-12-25
|
||||
|
||||
* Migrate to actix-http 1.0
|
||||
|
||||
## [0.2.1] - 2019-07-20
|
||||
|
||||
* Remove unneeded actix-utils dependency
|
||||
|
@ -663,13 +663,13 @@ mod tests {
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn test_pattern() {
|
||||
let mut srv =
|
||||
init_service(App::new().service(web::resource(["/test", "/test2"]).to(|| {
|
||||
async {
|
||||
Ok::<_, Error>(HttpResponse::Ok())
|
||||
}
|
||||
})))
|
||||
.await;
|
||||
let mut srv = init_service(
|
||||
App::new().service(
|
||||
web::resource(["/test", "/test2"])
|
||||
.to(|| async { Ok::<_, Error>(HttpResponse::Ok()) }),
|
||||
),
|
||||
)
|
||||
.await;
|
||||
let req = TestRequest::with_uri("/test").to_request();
|
||||
let resp = call_service(&mut srv, req).await;
|
||||
assert_eq!(resp.status(), StatusCode::OK);
|
||||
|
Loading…
Reference in New Issue
Block a user