mirror of https://github.com/fafhrd91/actix-web
Update `call_service` documentation
This commit is contained in:
parent
3a5b62b550
commit
28c6b5f4b2
|
@ -95,11 +95,10 @@ where
|
|||
/// Calls service and waits for response future completion.
|
||||
///
|
||||
/// ```rust
|
||||
/// use actix_web::{test, App, HttpResponse, http::StatusCode};
|
||||
/// use actix_service::Service;
|
||||
/// use actix_web::{test, web, App, HttpResponse, http::StatusCode};
|
||||
///
|
||||
/// #[test]
|
||||
/// fn test_response() {
|
||||
/// #[actix_rt::test]
|
||||
/// async fn test_response() {
|
||||
/// let mut app = test::init_service(
|
||||
/// App::new()
|
||||
/// .service(web::resource("/test").to(|| async {
|
||||
|
|
Loading…
Reference in New Issue