httpx 0.19.8 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/release_notes/0_19_8.md +1 -1
- data/doc/release_notes/0_20_0.md +36 -0
- data/doc/release_notes/0_20_1.md +5 -0
- data/doc/release_notes/0_20_2.md +7 -0
- data/lib/httpx/adapters/sentry.rb +102 -0
- data/lib/httpx/connection.rb +16 -2
- data/lib/httpx/io/ssl.rb +8 -3
- data/lib/httpx/options.rb +5 -0
- data/lib/httpx/plugins/authentication/basic.rb +24 -0
- data/lib/httpx/plugins/authentication/digest.rb +102 -0
- data/lib/httpx/plugins/authentication/ntlm.rb +37 -0
- data/lib/httpx/plugins/authentication/socks5.rb +24 -0
- data/lib/httpx/plugins/basic_authentication.rb +6 -6
- data/lib/httpx/plugins/digest_authentication.rb +15 -111
- data/lib/httpx/plugins/follow_redirects.rb +17 -5
- data/lib/httpx/plugins/ntlm_authentication.rb +8 -18
- data/lib/httpx/plugins/proxy/http.rb +76 -13
- data/lib/httpx/plugins/proxy/socks5.rb +6 -4
- data/lib/httpx/plugins/proxy.rb +30 -8
- data/lib/httpx/plugins/response_cache/store.rb +1 -0
- data/lib/httpx/pool.rb +4 -4
- data/lib/httpx/request.rb +3 -1
- data/lib/httpx/resolver/native.rb +6 -2
- data/lib/httpx/selector.rb +9 -2
- data/lib/httpx/session.rb +7 -2
- data/lib/httpx/version.rb +1 -1
- data/sig/chainable.rbs +4 -4
- data/sig/connection.rbs +3 -0
- data/sig/plugins/authentication/basic.rbs +19 -0
- data/sig/plugins/authentication/digest.rbs +24 -0
- data/sig/plugins/authentication/ntlm.rbs +20 -0
- data/sig/plugins/authentication/socks5.rbs +18 -0
- data/sig/plugins/basic_authentication.rbs +2 -2
- data/sig/plugins/digest_authentication.rbs +3 -13
- data/sig/plugins/ntlm_authentication.rbs +3 -8
- data/sig/plugins/proxy/http.rbs +13 -3
- data/sig/plugins/proxy.rbs +5 -3
- data/sig/pool.rbs +2 -2
- data/sig/resolver/native.rbs +3 -1
- data/sig/selector.rbs +1 -1
- data/sig/session.rbs +1 -1
- metadata +17 -2
data/sig/plugins/proxy/http.rbs
CHANGED
@@ -2,13 +2,23 @@ module HTTPX
|
|
2
2
|
module Plugins
|
3
3
|
module Proxy
|
4
4
|
module HTTP
|
5
|
-
|
5
|
+
|
6
|
+
module InstanceMethods
|
7
|
+
def with_proxy_basic_auth: (Hash[Symbol, untyped] opts) -> instance
|
8
|
+
|
9
|
+
def with_proxy_digest_auth: (Hash[Symbol, untyped] opts) -> instance
|
10
|
+
|
11
|
+
def with_proxy_ntlm_auth: (Hash[Symbol, untyped] opts) -> instance
|
12
|
+
end
|
13
|
+
|
6
14
|
module ConnectionMethods
|
7
|
-
def __http_proxy_connect: () -> void
|
15
|
+
def __http_proxy_connect: (Connection::_Parser parser) -> void
|
8
16
|
def __http_on_connect: (top, Response) -> void
|
9
17
|
end
|
10
|
-
|
18
|
+
|
11
19
|
end
|
12
20
|
end
|
21
|
+
|
22
|
+
type httpProxy = Session & Proxy::HTTP::InstanceMethods
|
13
23
|
end
|
14
24
|
end
|
data/sig/plugins/proxy.rbs
CHANGED
@@ -11,15 +11,17 @@ module HTTPX
|
|
11
11
|
attr_reader uri: URI::Generic
|
12
12
|
attr_reader username: String?
|
13
13
|
attr_reader password: String?
|
14
|
+
attr_reader scheme: String?
|
14
15
|
|
15
|
-
def
|
16
|
-
|
16
|
+
def can_authenticate?: (*untyped) -> boolish
|
17
|
+
|
18
|
+
def authenticate: (*untyped) -> String?
|
17
19
|
|
18
20
|
def ==: (untyped) -> bool
|
19
21
|
|
20
22
|
private
|
21
23
|
|
22
|
-
def initialize: (uri: generic_uri, ?username: String, ?password: String) -> untyped
|
24
|
+
def initialize: (uri: generic_uri, ?scheme: String, ?username: String, ?password: String, **extra) -> untyped
|
23
25
|
end
|
24
26
|
|
25
27
|
def self.configure: (singleton(Session)) -> void
|
data/sig/pool.rbs
CHANGED
@@ -36,9 +36,9 @@ module HTTPX
|
|
36
36
|
|
37
37
|
def unregister_connection: (Connection) -> void
|
38
38
|
|
39
|
-
def select_connection: (
|
39
|
+
def select_connection: (Selector::selectable) -> void
|
40
40
|
|
41
|
-
def deselect_connection: (
|
41
|
+
def deselect_connection: (Selector::selectable) -> Selector::selectable?
|
42
42
|
|
43
43
|
def coalesce_connections: (Connection coalescable, Connection coalescing) -> void
|
44
44
|
|
data/sig/resolver/native.rbs
CHANGED
@@ -27,6 +27,8 @@ module HTTPX
|
|
27
27
|
|
28
28
|
def timeout: () -> Numeric?
|
29
29
|
|
30
|
+
def raise_timeout_error: (Numeric interval) -> void
|
31
|
+
|
30
32
|
private
|
31
33
|
|
32
34
|
def initialize: (ip_family family, options options) -> void
|
@@ -35,7 +37,7 @@ module HTTPX
|
|
35
37
|
|
36
38
|
def consume: () -> void
|
37
39
|
|
38
|
-
def do_retry: () -> void
|
40
|
+
def do_retry: (?Numeric loop_time) -> void
|
39
41
|
|
40
42
|
def dread: (Integer) -> void
|
41
43
|
| () -> void
|
data/sig/selector.rbs
CHANGED
data/sig/session.rbs
CHANGED
@@ -33,7 +33,7 @@ module HTTPX
|
|
33
33
|
|
34
34
|
def set_connection_callbacks: (Connection, Array[Connection], Options) -> void
|
35
35
|
|
36
|
-
def build_altsvc_connection: (Connection, Array[Connection], URI::Generic, String, Hash[String, String], Options) -> Connection?
|
36
|
+
def build_altsvc_connection: (Connection existing_connection, Array[Connection] connections, URI::Generic alt_origin, String origin, Hash[String, String] alt_params, Options options) -> Connection?
|
37
37
|
|
38
38
|
def build_requests: (verb | string, uri, options) -> Array[Request]
|
39
39
|
| (Array[[verb | string, uri, options]], options) -> Array[Request]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -80,6 +80,9 @@ extra_rdoc_files:
|
|
80
80
|
- doc/release_notes/0_19_7.md
|
81
81
|
- doc/release_notes/0_19_8.md
|
82
82
|
- doc/release_notes/0_1_0.md
|
83
|
+
- doc/release_notes/0_20_0.md
|
84
|
+
- doc/release_notes/0_20_1.md
|
85
|
+
- doc/release_notes/0_20_2.md
|
83
86
|
- doc/release_notes/0_2_0.md
|
84
87
|
- doc/release_notes/0_2_1.md
|
85
88
|
- doc/release_notes/0_3_0.md
|
@@ -152,6 +155,9 @@ files:
|
|
152
155
|
- doc/release_notes/0_19_7.md
|
153
156
|
- doc/release_notes/0_19_8.md
|
154
157
|
- doc/release_notes/0_1_0.md
|
158
|
+
- doc/release_notes/0_20_0.md
|
159
|
+
- doc/release_notes/0_20_1.md
|
160
|
+
- doc/release_notes/0_20_2.md
|
155
161
|
- doc/release_notes/0_2_0.md
|
156
162
|
- doc/release_notes/0_2_1.md
|
157
163
|
- doc/release_notes/0_3_0.md
|
@@ -176,6 +182,7 @@ files:
|
|
176
182
|
- lib/httpx.rb
|
177
183
|
- lib/httpx/adapters/datadog.rb
|
178
184
|
- lib/httpx/adapters/faraday.rb
|
185
|
+
- lib/httpx/adapters/sentry.rb
|
179
186
|
- lib/httpx/adapters/webmock.rb
|
180
187
|
- lib/httpx/altsvc.rb
|
181
188
|
- lib/httpx/buffer.rb
|
@@ -197,6 +204,10 @@ files:
|
|
197
204
|
- lib/httpx/options.rb
|
198
205
|
- lib/httpx/parser/http1.rb
|
199
206
|
- lib/httpx/plugins/authentication.rb
|
207
|
+
- lib/httpx/plugins/authentication/basic.rb
|
208
|
+
- lib/httpx/plugins/authentication/digest.rb
|
209
|
+
- lib/httpx/plugins/authentication/ntlm.rb
|
210
|
+
- lib/httpx/plugins/authentication/socks5.rb
|
200
211
|
- lib/httpx/plugins/aws_sdk_authentication.rb
|
201
212
|
- lib/httpx/plugins/aws_sigv4.rb
|
202
213
|
- lib/httpx/plugins/basic_authentication.rb
|
@@ -274,6 +285,10 @@ files:
|
|
274
285
|
- sig/options.rbs
|
275
286
|
- sig/parser/http1.rbs
|
276
287
|
- sig/plugins/authentication.rbs
|
288
|
+
- sig/plugins/authentication/basic.rbs
|
289
|
+
- sig/plugins/authentication/digest.rbs
|
290
|
+
- sig/plugins/authentication/ntlm.rbs
|
291
|
+
- sig/plugins/authentication/socks5.rbs
|
277
292
|
- sig/plugins/aws_sdk_authentication.rbs
|
278
293
|
- sig/plugins/aws_sigv4.rbs
|
279
294
|
- sig/plugins/basic_authentication.rbs
|