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