mirror of
https://github.com/actix/actix-web.git
synced 2025-01-01 21:08:43 +00:00
Update call_service
documentation (#1302)
Co-authored-by: Christian Battaglia <christian.d.battaglia@gmail.com>
This commit is contained in:
parent
71d11644a7
commit
a2d4ff157e
1 changed files with 3 additions and 4 deletions
|
@ -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 a new issue