falcon 0.47.8 → 0.47.10
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/falcon/environment/proxy.rb +0 -2
- data/lib/falcon/middleware/proxy.rb +13 -2
- data/lib/falcon/middleware/redirect.rb +8 -0
- data/lib/falcon/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: b825e49f536d3fa8bb0bc337cfcc68f0b73edbf9687ff2dad5679dfa4a0b397e
|
|
4
|
+
data.tar.gz: f1442f53f2a5dc95f9370dc40b8680f4623a9c1c4efffe03700dcc013b731a5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d41bfb63b77bff804672b092dd6df9c4c2e4fd2f0dc26bc3f5358d54d909454bb2fdae7d1b1945ac57e6f39f7cb7fe35e5527d81baf49a845b46879ba55a783
|
|
7
|
+
data.tar.gz: 84d7853de0b47391bf15e2fc5c7ff294bb4b2c3b1d5f873a517d682cc30b9b5a487cbb8c5191e061cc88ceb80f0f57b32aa9a9e69aa77ca7d70779fe5ea531b7
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -7,6 +7,9 @@ require 'async/http/client'
|
|
|
7
7
|
require 'protocol/http/headers'
|
|
8
8
|
require 'protocol/http/middleware'
|
|
9
9
|
|
|
10
|
+
require 'console/event/failure'
|
|
11
|
+
require 'traces/provider'
|
|
12
|
+
|
|
10
13
|
module Falcon
|
|
11
14
|
module Middleware
|
|
12
15
|
# A static middleware which always returns a 400 bad request response.
|
|
@@ -95,7 +98,7 @@ module Falcon
|
|
|
95
98
|
def prepare_request(request, host)
|
|
96
99
|
forwarded = []
|
|
97
100
|
|
|
98
|
-
Console.
|
|
101
|
+
Console.debug(self) do |buffer|
|
|
99
102
|
buffer.puts "Request authority: #{request.authority}"
|
|
100
103
|
buffer.puts "Host authority: #{host.authority}"
|
|
101
104
|
buffer.puts "Request: #{request.method} #{request.path} #{request.version}"
|
|
@@ -141,9 +144,17 @@ module Falcon
|
|
|
141
144
|
super
|
|
142
145
|
end
|
|
143
146
|
rescue => error
|
|
144
|
-
Console.error(self
|
|
147
|
+
Console::Event::Failure.for(error).emit(self)
|
|
145
148
|
return Protocol::HTTP::Response[502, {'content-type' => 'text/plain'}, [error.class.name]]
|
|
146
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
|
|
147
158
|
end
|
|
148
159
|
end
|
|
149
160
|
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.47.
|
|
4
|
+
version: 0.47.10
|
|
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-08-
|
|
62
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
|
63
63
|
dependencies:
|
|
64
64
|
- !ruby/object:Gem::Dependency
|
|
65
65
|
name: async
|
metadata.gz.sig
CHANGED
|
Binary file
|