mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 05:18:44 +00:00
don't run awc doctests that rely on external public endpoints (#1888)
This commit is contained in:
parent
188ee44f81
commit
2204614134
2 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
//!
|
||||
//! ## Making a GET request
|
||||
//!
|
||||
//! ```rust
|
||||
//! ```no_run
|
||||
//! # #[actix_rt::main]
|
||||
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
||||
//! let mut client = awc::Client::default();
|
||||
|
@ -20,7 +20,7 @@
|
|||
//!
|
||||
//! ### Raw body contents
|
||||
//!
|
||||
//! ```rust
|
||||
//! ```no_run
|
||||
//! # #[actix_rt::main]
|
||||
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
||||
//! let mut client = awc::Client::default();
|
||||
|
@ -33,7 +33,7 @@
|
|||
//!
|
||||
//! ### Forms
|
||||
//!
|
||||
//! ```rust
|
||||
//! ```no_run
|
||||
//! # #[actix_rt::main]
|
||||
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
||||
//! let params = [("foo", "bar"), ("baz", "quux")];
|
||||
|
@ -48,7 +48,7 @@
|
|||
//!
|
||||
//! ### JSON
|
||||
//!
|
||||
//! ```rust
|
||||
//! ```no_run
|
||||
//! # #[actix_rt::main]
|
||||
//! # async fn main() -> Result<(), awc::error::SendRequestError> {
|
||||
//! let request = serde_json::json!({
|
||||
|
@ -66,7 +66,7 @@
|
|||
//!
|
||||
//! ## WebSocket support
|
||||
//!
|
||||
//! ```
|
||||
//! ```no_run
|
||||
//! # #[actix_rt::main]
|
||||
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
//! use futures_util::{sink::SinkExt, stream::StreamExt};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//!
|
||||
//! # Example
|
||||
//!
|
||||
//! ```
|
||||
//! ```no_run
|
||||
//! use awc::{Client, ws};
|
||||
//! use futures_util::{sink::SinkExt, stream::StreamExt};
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue