File: 2003_no_net.patch

package info (click to toggle)
rust-oxhttp 0.3.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: makefile: 2; sh: 1
file content (92 lines) | stat: -rw-r--r-- 2,291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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;