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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62d903fdc0bb50c3d76ee6091a0b142f18e112f93faf5de63f3f5879e4a19187
4
- data.tar.gz: 95f81fd5c9dd1525b0d87fdb18d63d46dcfd230fdbc4f2e2aa8ae4cdce298753
3
+ metadata.gz: a0dbc89627471c80f82f8888e8cce7ab9cf3dd01621ee6f92a7b6904b33c275a
4
+ data.tar.gz: 848e0f96f5b247866d02bc9ae0fdfc1a0f2bb4a70a5dd853927e991e635950e9
5
5
  SHA512:
6
- metadata.gz: a94919d62d6a84416b52d7678bba3bd68e795377e07149b5f2a612cbd1afae98e1e4cfe1a8ad8fb786204d51518042ebb6c58e3130a5df524275bc95da90d9fe
7
- data.tar.gz: 45d482bb25b531d9869d8641c36974943747c56c885d115a73234dcbccbd23ce1b42c62a35ecb648d7a6f325b69ebc9cb723d38c0053a6395de087e38d4e4fc3
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
@@ -81,8 +81,6 @@ module Falcon
81
81
 
82
82
  context.session_id_context = self.ssl_session_id
83
83
 
84
- context.ssl_version = :TLSv1_2_server
85
-
86
84
  context.set_params(
87
85
  ciphers: ::Falcon::TLS::SERVER_CIPHERS,
88
86
  verify_mode: ::OpenSSL::SSL::VERIFY_NONE,
@@ -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
@@ -55,6 +55,14 @@ module Falcon
55
55
  super
56
56
  end
57
57
  end
58
+
59
+ Traces::Provider(self) do
60
+ def call(request)
61
+ Traces.trace('falcon.middleware.redirect.call', attributes: {authority: request.authority}) do
62
+ super
63
+ end
64
+ end
65
+ end
58
66
  end
59
67
  end
60
68
  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::P}
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
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.47.9"
7
+ VERSION = "0.48.0"
8
8
  end
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.9
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-08-26 00:00:00.000000000 Z
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.66'
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.66'
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.0
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.0
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.0
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.0
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.5'
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.5'
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