ratalada 2.0.0 → 2.0.1
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
- data/lib/ratalada/falcon.rb +9 -2
- data/lib/ratalada/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d020d5668bf545f9babae240d0aed21f6fea5edc6b1f157b95403b3f29ae1d9
|
|
4
|
+
data.tar.gz: 706e4faeaa540a52e8d71de16a00332828ce81808b43d0bde4d9d84d785fa4be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 651da70b2bbca675a448cf91f247c00ac9f74be3c2a871a9cd1978cc615444df0b685edd048cd8e28b16a3b2d1fb9750ffd707818ba57025e3fe07d7044b81c4
|
|
7
|
+
data.tar.gz: 302f09422321099f66e839d8274251269e3b828cedb7edbc6bb1c1fa90fa6cfe6dc61ef1f64945477bd6cd3d90aa4396829be9bdd908d14c651eef7646ae99b4
|
data/lib/ratalada/falcon.rb
CHANGED
|
@@ -16,8 +16,15 @@ module Ratalada
|
|
|
16
16
|
# hand it to Async::Service::Controller. The controller binds the socket
|
|
17
17
|
# once in the parent, runs `count` supervised workers accepting from it
|
|
18
18
|
# (restarts, health checks, INT/TERM/HUP handling all come with it).
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
# `falcon host` builds its middleware via Environment::Rackup, which
|
|
20
|
+
# threads Environment::Server#cache -- false -- into rack_middleware, so
|
|
21
|
+
# the response cache is off unless `falcon serve --cache` asks for it.
|
|
22
|
+
# Worth keeping off by default: the store is keyed on
|
|
23
|
+
# [authority, method, path], entries without max-age never expire, and
|
|
24
|
+
# lookups skip the Cookie check that insertion applies, so one anonymous
|
|
25
|
+
# response can be replayed to logged-in requests.
|
|
26
|
+
def run(app, host:, port:, count: 1, cache: false)
|
|
27
|
+
middleware = ::Falcon::Server.rack_middleware(app, cache: cache)
|
|
21
28
|
|
|
22
29
|
environment = Async::Service::Environment.new(::Falcon::Environment::Server).with(
|
|
23
30
|
name: "ratalada",
|
data/lib/ratalada/version.rb
CHANGED