class Falcon::Command::Proxy
Manages a {Controller::Proxy} instance which is responsible for proxing incoming requests.
Implements the ‘falcon proxy` command.
def call
def call Async.logger.info(self) do |buffer| buffer.puts "Falcon Proxy 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::Proxy.new(self) end
def endpoint(**options)
def endpoint(**options) Async::HTTP::Endpoint.parse(@options[:bind], timeout: @options[:timeout], **options) end