Description: skip network-requiring tests by default Author: Jonas Smedegaard Forwarded: not-needed Last-Update: 2025-08-31 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/client.rs +++ b/src/client.rs @@ -97,7 +97,7 @@ /// /// Missing: HSTS support, authentication and keep alive. /// -/// ``` +/// ```no_run /// use http::header::CONTENT_TYPE; /// use oxhttp::model::{Body, HeaderName, Method, Request, StatusCode}; /// use oxhttp::Client; @@ -410,6 +410,7 @@ use crate::model::header::CONTENT_TYPE; #[test] + #[ignore] fn test_http_get_ok() -> Result<()> { let client = Client::new(); let response = client.request( @@ -426,6 +427,7 @@ } #[test] + #[ignore] fn test_http_get_ok_with_user_agent_and_timeout() -> Result<()> { let client = Client::new() .with_user_agent("OxHTTP/1.0") @@ -443,6 +445,7 @@ } #[test] + #[ignore] fn test_http_get_ok_explicit_port() -> Result<()> { let client = Client::new(); let response = client.request( @@ -457,6 +460,7 @@ } #[test] + #[ignore] fn test_http_wrong_port() { let client = Client::new(); assert!(client @@ -477,6 +481,7 @@ feature = "native-tls" ))] #[test] + #[ignore] fn test_https_get_ok() -> Result<()> { let client = Client::new(); let response = client.request( @@ -498,6 +503,7 @@ feature = "native-tls" )))] #[test] + #[ignore] fn test_https_get_err() { let client = Client::new(); assert!(client @@ -511,6 +517,7 @@ } #[test] + #[ignore] fn test_http_get_not_found() -> Result<()> { let client = Client::new(); let response = client.request( @@ -547,6 +554,7 @@ feature = "native-tls" ))] #[test] + #[ignore] fn test_redirection() -> Result<()> { let client = Client::new() .with_redirection_limit(5) --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Example: -```rust +```rust,no_run use oxhttp::Client; use oxhttp::model::{Body, Request, Method, StatusCode, HeaderName}; use oxhttp::model::header::CONTENT_TYPE;