httpx 1.4.1 → 1.4.3

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.
data/sig/response.rbs CHANGED
@@ -1,5 +1,7 @@
1
1
  module HTTPX
2
2
  interface _Response
3
+ def <<: (String data) -> void
4
+
3
5
  def finished?: () -> bool
4
6
 
5
7
  def raise_for_status: () -> self
@@ -23,6 +25,7 @@ module HTTPX
23
25
  @options: Options
24
26
  @request: Request
25
27
  @content_type: ContentType
28
+ @finished: bool
26
29
 
27
30
  def copy_to: (_ToPath | _Writer destination) -> void
28
31
 
@@ -38,9 +41,11 @@ module HTTPX
38
41
 
39
42
  def content_type: () -> ContentType
40
43
 
44
+ def finish!: () -> void
45
+
41
46
  def complete?: () -> bool
42
47
 
43
- def json: (?json_options opts) -> untyped
48
+ def json: (?JSON::options opts) -> untyped
44
49
 
45
50
  def form: () -> Hash[String, untyped]
46
51
 
@@ -77,9 +82,9 @@ module HTTPX
77
82
  @options: Options
78
83
  @error: Exception
79
84
 
80
- attr_reader request: Request
85
+ %a{pure} attr_reader request: Request
81
86
 
82
- attr_reader response: Response?
87
+ %a{pure} attr_reader response: Response?
83
88
 
84
89
  def status: () -> (Integer | _ToS)
85
90
 
data/sig/selector.rbs CHANGED
@@ -10,6 +10,7 @@ module HTTPX
10
10
  @timers: Timers
11
11
 
12
12
  @selectables: Array[selectable]
13
+ @is_timer_interval: bool
13
14
 
14
15
  def next_tick: () -> void
15
16
 
data/sig/timers.rbs CHANGED
@@ -1,10 +1,12 @@
1
1
  module HTTPX
2
2
  class Timers
3
+ type callback = ^() -> void
4
+
3
5
  @intervals: Array[Interval]
4
6
  @next_interval_at: Float
5
7
 
6
- def after: (Numeric interval_in_secs, ^() -> void) -> Interval
7
- | (Numeric interval_in_secs) { () -> void } -> Interval
8
+ def after: (Numeric interval_in_secs, ^() -> void) -> Timer
9
+ | (Numeric interval_in_secs) { () -> void } -> Timer
8
10
 
9
11
  def wait_interval: () -> Numeric?
10
12
 
@@ -15,8 +17,6 @@ module HTTPX
15
17
  class Interval
16
18
  include Comparable
17
19
 
18
- type callback = ^() -> void
19
-
20
20
  attr_reader interval: Numeric
21
21
 
22
22
  @callbacks: Array[callback]
@@ -25,6 +25,8 @@ module HTTPX
25
25
 
26
26
  def on_empty: () { () -> void } -> void
27
27
 
28
+ def cancel: () -> void
29
+
28
30
  def to_f: () -> Float
29
31
 
30
32
  def <<: (callback) -> void
@@ -41,5 +43,14 @@ module HTTPX
41
43
 
42
44
  def initialize: (Numeric interval) -> void
43
45
  end
46
+
47
+ class Timer
48
+ @interval: Interval
49
+ @callback: callback
50
+
51
+ def initialize: (Interval interval, callback callback) -> void
52
+
53
+ def cancel: () -> void
54
+ end
44
55
  end
45
56
  end
@@ -5,7 +5,7 @@ module HTTPX::Transcoder
5
5
  def self?.encode: (_ToJson json) -> Encoder
6
6
  def self?.decode: (HTTPX::Response response) -> _Decoder
7
7
 
8
- def self?.json_load: (string source, ?json_options) -> untyped
8
+ def self?.json_load: (string source, ?JSON::options) -> untyped
9
9
  def self?.json_dump: (_ToJson obj, *untyped) -> String
10
10
 
11
11
  class Encoder
@@ -24,7 +24,7 @@ module HTTPX
24
24
  @form: Enumerable[[Symbol | string, Object & multipart_nested_value]]
25
25
  @parts: Array[Object & _Reader]
26
26
 
27
- def bytesize: () -> Integer
27
+ attr_reader bytesize: Integer
28
28
 
29
29
  def content_type: () -> String
30
30
 
@@ -5,7 +5,6 @@ module HTTPX
5
5
 
6
6
  @body: BodyReader
7
7
  @buffer: Response::Buffer?
8
- @body: BodyReader
9
8
  @closed: bool
10
9
 
11
10
  attr_reader content_type: String
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
10
+ date: 2025-03-25 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: http-2
@@ -151,6 +150,8 @@ extra_rdoc_files:
151
150
  - doc/release_notes/1_3_4.md
152
151
  - doc/release_notes/1_4_0.md
153
152
  - doc/release_notes/1_4_1.md
153
+ - doc/release_notes/1_4_2.md
154
+ - doc/release_notes/1_4_3.md
154
155
  files:
155
156
  - LICENSE.txt
156
157
  - README.md
@@ -273,6 +274,8 @@ files:
273
274
  - doc/release_notes/1_3_4.md
274
275
  - doc/release_notes/1_4_0.md
275
276
  - doc/release_notes/1_4_1.md
277
+ - doc/release_notes/1_4_2.md
278
+ - doc/release_notes/1_4_3.md
276
279
  - lib/httpx.rb
277
280
  - lib/httpx/adapters/datadog.rb
278
281
  - lib/httpx/adapters/faraday.rb
@@ -433,6 +436,7 @@ files:
433
436
  - sig/plugins/proxy/socks5.rbs
434
437
  - sig/plugins/proxy/ssh.rbs
435
438
  - sig/plugins/push_promise.rbs
439
+ - sig/plugins/query.rbs
436
440
  - sig/plugins/rate_limiter.rbs
437
441
  - sig/plugins/response_cache.rbs
438
442
  - sig/plugins/retries.rbs
@@ -478,7 +482,6 @@ metadata:
478
482
  source_code_uri: https://gitlab.com/os85/httpx
479
483
  homepage_uri: https://honeyryderchuck.gitlab.io/httpx/
480
484
  rubygems_mfa_required: 'true'
481
- post_install_message:
482
485
  rdoc_options: []
483
486
  require_paths:
484
487
  - lib
@@ -493,8 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
493
496
  - !ruby/object:Gem::Version
494
497
  version: '0'
495
498
  requirements: []
496
- rubygems_version: 3.5.3
497
- signing_key:
499
+ rubygems_version: 3.6.2
498
500
  specification_version: 4
499
501
  summary: HTTPX, to the future, and beyond
500
502
  test_files: []