mirror of
https://github.com/actix/actix-web.git
synced 2024-11-21 17:11:08 +00:00
docs(web): mention try_init_service
This commit is contained in:
parent
f61fcbe840
commit
4303dd8c37
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
//! Various helpers for Actix applications to use during testing.
|
||||
//!
|
||||
//! # Creating A Test Service
|
||||
//! # Initializing A Test Service
|
||||
//! - [`init_service`]
|
||||
//! - [`try_init_service`]
|
||||
//!
|
||||
//! # Off-The-Shelf Test Services
|
||||
//! - [`ok_service`]
|
||||
|
@ -49,6 +50,7 @@ pub use self::{
|
|||
/// Must be used inside an async test. Works for both `ServiceRequest` and `HttpRequest`.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// use actix_web::{http::StatusCode, HttpResponse};
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue