async-http 0.64.1 → 0.64.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 579710906e91192d6f91923c7f4d07e2cba0bf55894d8c2629220352cf0638b2
4
- data.tar.gz: ba3841e0a78ec46be5c0deea52584b7944c86d490591871840992c741959fb94
3
+ metadata.gz: 69e55450d843d44bc5b454d5d888cc3e5a5b76c2a437253eb2c29bfd8b6087d5
4
+ data.tar.gz: 99982836741ad88a7f86e58a43723861f4a825907026614f0dd7fd9f5a4aa63b
5
5
  SHA512:
6
- metadata.gz: 27d016c44e59e5b40e843b46e80bb90b3a5a4f9de9e876c63600a951abf6787260c5e8e702a7ec559cf4d34f1b4cbaf26ed506e65cfc010b32f63f179662519f
7
- data.tar.gz: 8f3ac574e9239cbd92742823ed1adb93a09189b0cdc70299d7162be9c44338c69691c8efdecabaeba7d1f8c697c6d11e1a7201824a758f262004d985fd1a658a
6
+ metadata.gz: 46484d6a407f2334e2c273373e99c2fa75ebde8125b2acd2331d8a00cc35b28b97336248f4d4c780a0e38e469a724aa6c5e6f306f976185082a122faf343e7fc
7
+ data.tar.gz: 6a9408adf7ac198d5211dfa9231537e37c33484ad637f17cb7013042ecf35dcddc72321fb823ee20b3d085909fe8552505d86bb8cbd3b9c6f32dce8b5289bb65
checksums.yaml.gz.sig CHANGED
Binary file
@@ -42,6 +42,20 @@ module Async
42
42
  @authority = authority
43
43
  end
44
44
 
45
+ def as_json(...)
46
+ {
47
+ endpoint: @endpoint.to_s,
48
+ protocol: @protocol,
49
+ retries: @retries,
50
+ scheme: @scheme,
51
+ authority: @authority,
52
+ }
53
+ end
54
+
55
+ def to_json(...)
56
+ as_json.to_json(...)
57
+ end
58
+
45
59
  attr :endpoint
46
60
  attr :protocol
47
61
 
@@ -20,6 +20,18 @@ module Async
20
20
  @version = version
21
21
  end
22
22
 
23
+ def to_s
24
+ "\#<#{self.class} negotiated #{@version}, currently #{@ready ? 'ready' : 'in-use'}>"
25
+ end
26
+
27
+ def as_json(...)
28
+ to_s
29
+ end
30
+
31
+ def to_json(...)
32
+ as_json.to_json(...)
33
+ end
34
+
23
35
  attr :version
24
36
 
25
37
  def http1?
@@ -36,7 +36,15 @@ module Async
36
36
  end
37
37
 
38
38
  def to_s
39
- "\#<#{self.class} #{@streams.count} active streams>"
39
+ "\#<#{self.class} #{@count} requests, #{@streams.count} active streams>"
40
+ end
41
+
42
+ def as_json(...)
43
+ to_s
44
+ end
45
+
46
+ def to_json(...)
47
+ as_json.to_json(...)
40
48
  end
41
49
 
42
50
  attr :stream
@@ -28,6 +28,18 @@ module Async
28
28
  @scheme = scheme
29
29
  end
30
30
 
31
+ def as_json(...)
32
+ {
33
+ endpoint: @endpoint.to_s,
34
+ protocol: @protocol,
35
+ scheme: @scheme,
36
+ }
37
+ end
38
+
39
+ def to_json(...)
40
+ as_json.to_json(...)
41
+ end
42
+
31
43
  attr :endpoint
32
44
  attr :protocol
33
45
  attr :scheme
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.64.1"
8
+ VERSION = "0.64.2"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.1
4
+ version: 0.64.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -54,7 +54,7 @@ cert_chain:
54
54
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
55
55
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
56
56
  -----END CERTIFICATE-----
57
- date: 2024-04-07 00:00:00.000000000 Z
57
+ date: 2024-04-22 00:00:00.000000000 Z
58
58
  dependencies:
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: async
metadata.gz.sig CHANGED
Binary file