async-http 0.71.0 → 0.72.0

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: 86bc918af980c024aca7370544452805f98f6b207eb6bc9e86f605ba21a7a612
4
- data.tar.gz: 595e2f1ce10a7cf2864992380e27398602f7e7ff956f73fd2e733f50bd02ca31
3
+ metadata.gz: 8b358f54acd8cf0943e35f30865d7f505025bad37a2c37e0dda5f8438efe3b25
4
+ data.tar.gz: a8a9eee82cc0723cf8101ef727072d4518a38ddb7e68f5f0f2d15027e92e83a9
5
5
  SHA512:
6
- metadata.gz: 0fa98ca844d1f7b956128b17b4587756df1b8d164effb82b6704fbc61f50106095429fd7cb6596f6658ebe050c605b819fcbf3121ebc9939f739c1435f6eaac1
7
- data.tar.gz: 9489e703af232522f9db1f8d931a2a31c810538b5592cdd0868af102ee3585161a7f912a14b62dcfccd412d1cd06e26e03472bd033c5f4183f4974b3e8d7f6d4
6
+ metadata.gz: 7f5720d8ac42c48afb19bd5c387db2da015b2d210836c6d1a7abfe3cd3a4df85587c92b9bbdee61fce397302c66c8ca303c123d9e7f9a2201b26602ea0240e58
7
+ data.tar.gz: 91a543963515d1375953da096781b7b9d5a161e20bafc6aa067fbf0e09ff546ae3b48e18a5d8ca06dc5173184546898d415310b6bfbded5605040bce08443010
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- N`�"sNV `a���1�`9d��q����(_S���
2
- � Q>�&YR�s4�
3
- ����HR�!��?����� �����YW�"u��y�{J���n����2�������2k!$|5�(u5XQIm�+}ݟ�?e��� ��҅9��- �]�9��o�t���ޙ0��]�[��d�,�����3%^>\�t���#Yv���[�G�H� �Z(D|�b\Ȟ-��}F�$`��j0�9 ݼ:g�O
1
+ &���_��lB�k M��ϟ��D��Ɋ�`��n�-��v�3��>�W��#O$�|a��S��On�r:ׯ�U9l�<���E��0|R�j�8z?��h��n���@V��a��f�0�^L��sr�R�S�/��2؛�.ps)Ho��GSB����f�5G����&�Zr�
@@ -165,6 +165,10 @@ module Async
165
165
  end
166
166
 
167
167
  super.tap do |response|
168
+ if version = response&.version
169
+ span['http.version'] = version
170
+ end
171
+
168
172
  if status = response&.status
169
173
  span['http.status_code'] = status
170
174
  end
@@ -81,17 +81,7 @@ module Async
81
81
  # We don't want to follow redirects for HEAD requests:
82
82
  return super if request.head?
83
83
 
84
- if body = request.body
85
- if body.respond_to?(:rewind)
86
- # The request body was already rewindable, so use it as is:
87
- body = request.body
88
- else
89
- # The request body was not rewindable, and we might need to resubmit it if we get a response status of 307 or 308, so make it rewindable:
90
- body = ::Protocol::HTTP::Body::Rewindable.new(body)
91
- request.body = body
92
- end
93
- end
94
-
84
+ body = ::Protocol::HTTP::Body::Rewindable.wrap(request)
95
85
  hops = 0
96
86
 
97
87
  while hops <= @maximum_hops
@@ -81,6 +81,7 @@ module Async
81
81
  end
82
82
 
83
83
  attributes = {
84
+ 'http.version': request.version,
84
85
  'http.method': request.method,
85
86
  'http.authority': request.authority,
86
87
  'http.scheme': request.scheme,
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.71.0"
8
+ VERSION = "0.72.0"
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.71.0
4
+ version: 0.72.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -58,7 +58,7 @@ cert_chain:
58
58
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
59
59
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
60
60
  -----END CERTIFICATE-----
61
- date: 2024-08-26 00:00:00.000000000 Z
61
+ date: 2024-08-29 00:00:00.000000000 Z
62
62
  dependencies:
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: async
@@ -122,14 +122,14 @@ dependencies:
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '0.28'
125
+ version: '0.29'
126
126
  type: :runtime
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: '0.28'
132
+ version: '0.29'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: protocol-http1
135
135
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file