You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: I want to register the server with a service discovery mechanism at startup. The additional functionality involved is well-suited to middleware, and the registration is currently implemented in the middleware's initialize method.
With rackup the middleware is initialized upon server startup.
With Sinatra's use, either at top-level or inside a Sinatra::Base, the middleware is only initialized after the first request is received:
It would be useful if Sinatra had same behavior as rackup, initializing all middleware at server startup.
Sinatra: 1.4.7
Rack: 1.6.4
The text was updated successfully, but these errors were encountered:
Use case: I want to register the server with a service discovery mechanism at startup. The additional functionality involved is well-suited to middleware, and the registration is currently implemented in the middleware's
initialize
method.With rackup the middleware is initialized upon server startup.
With Sinatra's
use
, either at top-level or inside aSinatra::Base
, the middleware is only initialized after the first request is received:It would be useful if Sinatra had same behavior as rackup, initializing all middleware at server startup.
Sinatra: 1.4.7
Rack: 1.6.4
The text was updated successfully, but these errors were encountered: