Description: skip network-requiring tests by default
Author: Jonas Smedegaard <dr@jones.dk>
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;
@@ -409,6 +409,7 @@
     use crate::model::header::CONTENT_TYPE;
 
     #[test]
+    #[ignore]
     fn test_http_get_ok() -> Result<()> {
         let client = Client::new();
         let response = client.request(
@@ -425,6 +426,7 @@
     }
 
     #[test]
+    #[ignore]
     fn test_http_get_ok_with_user_agent_and_timeout() -> Result<()> {
         let client = Client::new()
             .with_user_agent("OxHTTP/1.0")
@@ -442,6 +444,7 @@
     }
 
     #[test]
+    #[ignore]
     fn test_http_get_ok_explicit_port() -> Result<()> {
         let client = Client::new();
         let response = client.request(
@@ -456,6 +459,7 @@
     }
 
     #[test]
+    #[ignore]
     fn test_http_wrong_port() {
         let client = Client::new();
         assert!(client
@@ -476,6 +480,7 @@
         feature = "native-tls"
     ))]
     #[test]
+    #[ignore]
     fn test_https_get_ok() -> Result<()> {
         let client = Client::new();
         let response = client.request(
@@ -497,6 +502,7 @@
         feature = "native-tls"
     )))]
     #[test]
+    #[ignore]
     fn test_https_get_err() {
         let client = Client::new();
         assert!(client
@@ -510,6 +516,7 @@
     }
 
     #[test]
+    #[ignore]
     fn test_http_get_not_found() -> Result<()> {
         let client = Client::new();
         let response = client.request(
@@ -546,6 +553,7 @@
         feature = "native-tls"
     ))]
     #[test]
+    #[ignore]
     fn test_redirection() -> Result<()> {
         let client = Client::new().with_redirection_limit(5);
         let response = client.request(
--- 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;
