async-http 0.82.2 → 0.82.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/http/protocol/http1/client.rb +16 -0
- data/lib/async/http/protocol/http2/client.rb +24 -1
- data/lib/async/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34b971dd39f2aeab82cdca2bdb30c6d51a8c05b920933e5daf8e5525a60b2362
|
4
|
+
data.tar.gz: 53d7cfbb2541b3d138198d2ab976e59b10709fb048c3cdaf9e371f21aeb8ae57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20bdd7ab4ebf36833e1e05542dbe8288534fd37963a7ad25552b35a2dc8cb1dd08729eaa38dda1bcec084e4534105231a5901af99cf0f28f4a65621315bcfd5a
|
7
|
+
data.tar.gz: 8e6d0f0e569ad1f37f50265231f2056099eacdd8f9a7a17bffff3f894f5fa50531a32a483ca11d5ff5d5d50c47cfbea4e31825319e4b7438a026df21cdb9e4d8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -5,6 +5,8 @@
|
|
5
5
|
|
6
6
|
require_relative "connection"
|
7
7
|
|
8
|
+
require "traces/provider"
|
9
|
+
|
8
10
|
module Async
|
9
11
|
module HTTP
|
10
12
|
module Protocol
|
@@ -79,6 +81,20 @@ module Async
|
|
79
81
|
self.close(error)
|
80
82
|
raise
|
81
83
|
end
|
84
|
+
|
85
|
+
Traces::Provider(self) do
|
86
|
+
def write_request(...)
|
87
|
+
Traces.trace("async.http.protocol.http1.client.write_request") do
|
88
|
+
super
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def read_response(...)
|
93
|
+
Traces.trace("async.http.protocol.http1.client.read_response") do
|
94
|
+
super
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
82
98
|
end
|
83
99
|
end
|
84
100
|
end
|
@@ -6,6 +6,7 @@
|
|
6
6
|
require_relative "connection"
|
7
7
|
require_relative "response"
|
8
8
|
|
9
|
+
require "traces/provider"
|
9
10
|
require "protocol/http2/client"
|
10
11
|
|
11
12
|
module Async
|
@@ -34,10 +35,32 @@ module Async
|
|
34
35
|
@count += 1
|
35
36
|
|
36
37
|
response = create_response
|
38
|
+
write_request(response, request)
|
39
|
+
read_response(response)
|
40
|
+
|
41
|
+
return response
|
42
|
+
end
|
43
|
+
|
44
|
+
def write_request(response, request)
|
37
45
|
response.send_request(request)
|
46
|
+
end
|
47
|
+
|
48
|
+
def read_response(response)
|
38
49
|
response.wait
|
50
|
+
end
|
51
|
+
|
52
|
+
Traces::Provider(self) do
|
53
|
+
def write_request(...)
|
54
|
+
Traces.trace("async.http.protocol.http2.client.write_request") do
|
55
|
+
super
|
56
|
+
end
|
57
|
+
end
|
39
58
|
|
40
|
-
|
59
|
+
def read_response(...)
|
60
|
+
Traces.trace("async.http.protocol.http2.client.read_response") do
|
61
|
+
super
|
62
|
+
end
|
63
|
+
end
|
41
64
|
end
|
42
65
|
end
|
43
66
|
end
|
data/lib/async/http/version.rb
CHANGED
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.82.
|
4
|
+
version: 0.82.3
|
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-
|
61
|
+
date: 2024-11-03 00:00:00.000000000 Z
|
62
62
|
dependencies:
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: async
|
metadata.gz.sig
CHANGED
Binary file
|