module Rack::Handler::Falcon
def self.run(app, **options)
Run the specified app using the given options:
def self.run(app, **options) endpoint = endpoint_for(**options) app = ::Falcon::Adapters::Rack.new(app) app = ::Falcon::Adapters::Rewindable.new(app) server = ::Falcon::Server.new(app, endpoint, protocol: Async::HTTP::Protocol::HTTP1, scheme: SCHEME) yield server if block_given? Async::Reactor.run do server.run end end