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