falcon 0.47.9 → 0.48.0
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/falcon/command/virtual.rb +2 -1
- data/lib/falcon/environment/proxy.rb +0 -2
- data/lib/falcon/middleware/proxy.rb +9 -1
- data/lib/falcon/middleware/redirect.rb +8 -0
- data/lib/falcon/proxy_endpoint.rb +2 -2
- data/lib/falcon/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +24 -16
- 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: a0dbc89627471c80f82f8888e8cce7ab9cf3dd01621ee6f92a7b6904b33c275a
|
4
|
+
data.tar.gz: 848e0f96f5b247866d02bc9ae0fdfc1a0f2bb4a70a5dd853927e991e635950e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f454b3f224174fde4901cb85ce7cfb12b447dbcf025788d3a769cab12ce1c0d0095164f668621d604a0e295648c2a18008a995133e635205c4d2aee32cf566c6
|
7
|
+
data.tar.gz: 633db8f65e238d35a48541ba43c3490a5c398d09883f2fb6ac41f50c316549fe49426f1870f612634d39b3766709303890ad76d9e1bbbe8863d8d85d34fcfd1f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -69,11 +69,12 @@ module Falcon
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# An endpoint suitable for connecting to the specified hostname.
|
72
|
-
def host_endpoint(hostname, **options)
|
72
|
+
def host_endpoint(hostname, path: "/", **options)
|
73
73
|
endpoint = secure_endpoint(**options)
|
74
74
|
|
75
75
|
url = URI.parse(@options[:bind_secure])
|
76
76
|
url.hostname = hostname
|
77
|
+
url.path = path
|
77
78
|
|
78
79
|
return Async::HTTP::Endpoint.new(url, hostname: endpoint.hostname)
|
79
80
|
end
|
@@ -8,6 +8,7 @@ require 'protocol/http/headers'
|
|
8
8
|
require 'protocol/http/middleware'
|
9
9
|
|
10
10
|
require 'console/event/failure'
|
11
|
+
require 'traces/provider'
|
11
12
|
|
12
13
|
module Falcon
|
13
14
|
module Middleware
|
@@ -138,7 +139,6 @@ module Falcon
|
|
138
139
|
|
139
140
|
client = connect(host.endpoint)
|
140
141
|
|
141
|
-
Console.debug(self, "Sending request...", host: host, request: request, count: @count)
|
142
142
|
client.call(request)
|
143
143
|
else
|
144
144
|
super
|
@@ -147,6 +147,14 @@ module Falcon
|
|
147
147
|
Console::Event::Failure.for(error).emit(self)
|
148
148
|
return Protocol::HTTP::Response[502, {'content-type' => 'text/plain'}, [error.class.name]]
|
149
149
|
end
|
150
|
+
|
151
|
+
Traces::Provider(self) do
|
152
|
+
def call(request)
|
153
|
+
Traces.trace('falcon.middleware.proxy.call', attributes: {authority: request.authority}) do
|
154
|
+
super
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
150
158
|
end
|
151
159
|
end
|
152
160
|
end
|
@@ -17,7 +17,7 @@ module Falcon
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def to_s
|
20
|
-
"\#<#{self.class} endpoint=#{@endpoint}>"
|
20
|
+
"\#<#{self.class} protocol=#{self.protocol} endpoint=#{@endpoint}>"
|
21
21
|
end
|
22
22
|
|
23
23
|
# The actual endpoint for I/O.
|
@@ -25,7 +25,7 @@ module Falcon
|
|
25
25
|
attr :endpoint
|
26
26
|
|
27
27
|
# The protocol to use for this connection.
|
28
|
-
# @returns [Async::HTTP::Protocol] A specific protocol, e.g. {Async::HTTP::
|
28
|
+
# @returns [Async::HTTP::Protocol] A specific protocol, e.g. {Async::HTTP::Protocol::HTTP1}
|
29
29
|
def protocol
|
30
30
|
@options[:protocol]
|
31
31
|
end
|
data/lib/falcon/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: falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.48.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -59,7 +59,7 @@ cert_chain:
|
|
59
59
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
60
60
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
61
61
|
-----END CERTIFICATE-----
|
62
|
-
date: 2024-
|
62
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
63
63
|
dependencies:
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: async
|
@@ -95,34 +95,28 @@ dependencies:
|
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: '0.
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 0.66.3
|
98
|
+
version: '0.75'
|
102
99
|
type: :runtime
|
103
100
|
prerelease: false
|
104
101
|
version_requirements: !ruby/object:Gem::Requirement
|
105
102
|
requirements:
|
106
103
|
- - "~>"
|
107
104
|
- !ruby/object:Gem::Version
|
108
|
-
version: '0.
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 0.66.3
|
105
|
+
version: '0.75'
|
112
106
|
- !ruby/object:Gem::Dependency
|
113
107
|
name: async-http-cache
|
114
108
|
requirement: !ruby/object:Gem::Requirement
|
115
109
|
requirements:
|
116
110
|
- - "~>"
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.4
|
112
|
+
version: '0.4'
|
119
113
|
type: :runtime
|
120
114
|
prerelease: false
|
121
115
|
version_requirements: !ruby/object:Gem::Requirement
|
122
116
|
requirements:
|
123
117
|
- - "~>"
|
124
118
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.4
|
119
|
+
version: '0.4'
|
126
120
|
- !ruby/object:Gem::Dependency
|
127
121
|
name: async-service
|
128
122
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,34 +173,48 @@ dependencies:
|
|
179
173
|
- - "~>"
|
180
174
|
- !ruby/object:Gem::Version
|
181
175
|
version: '3.0'
|
176
|
+
- !ruby/object:Gem::Dependency
|
177
|
+
name: protocol-http
|
178
|
+
requirement: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0.31'
|
183
|
+
type: :runtime
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0.31'
|
182
190
|
- !ruby/object:Gem::Dependency
|
183
191
|
name: process-metrics
|
184
192
|
requirement: !ruby/object:Gem::Requirement
|
185
193
|
requirements:
|
186
194
|
- - "~>"
|
187
195
|
- !ruby/object:Gem::Version
|
188
|
-
version: 0.2
|
196
|
+
version: '0.2'
|
189
197
|
type: :runtime
|
190
198
|
prerelease: false
|
191
199
|
version_requirements: !ruby/object:Gem::Requirement
|
192
200
|
requirements:
|
193
201
|
- - "~>"
|
194
202
|
- !ruby/object:Gem::Version
|
195
|
-
version: 0.2
|
203
|
+
version: '0.2'
|
196
204
|
- !ruby/object:Gem::Dependency
|
197
205
|
name: protocol-rack
|
198
206
|
requirement: !ruby/object:Gem::Requirement
|
199
207
|
requirements:
|
200
208
|
- - "~>"
|
201
209
|
- !ruby/object:Gem::Version
|
202
|
-
version: '0.
|
210
|
+
version: '0.7'
|
203
211
|
type: :runtime
|
204
212
|
prerelease: false
|
205
213
|
version_requirements: !ruby/object:Gem::Requirement
|
206
214
|
requirements:
|
207
215
|
- - "~>"
|
208
216
|
- !ruby/object:Gem::Version
|
209
|
-
version: '0.
|
217
|
+
version: '0.7'
|
210
218
|
- !ruby/object:Gem::Dependency
|
211
219
|
name: samovar
|
212
220
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|