class Falcon::Command::Redirect
def call
def call Console.logger.info(self) do |buffer| buffer.puts "Falcon Redirect v#{VERSION} taking flight!" buffer.puts "- Binding to: #{@options[:bind]}" buffer.puts "- To terminate: Ctrl-C or kill #{Process.pid}" buffer.puts "- To reload: kill -HUP #{Process.pid}" end self.controller.run end
def container_class
def container_class Async::Container.best_container_class end
def container_options
Options for the container.
def container_options {} end
def controller
def controller Controller::Redirect.new(self) end
def endpoint(**options)
def endpoint(**options) Async::HTTP::Endpoint.parse(@options[:bind], timeout: @options[:timeout], **options) end
def redirect_endpoint(**options)
def redirect_endpoint(**options) Async::HTTP::Endpoint.parse(@options[:redirect], **options) end