class Falcon::Command::Proxy

Manages a {Controller::Proxy} instance which is responsible for proxing incoming requests.
Implements the ‘falcon proxy` command.

def call

Prepare the environment and run the controller.
def call
	Console.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

The container class to use.
def container_class
	Async::Container.best_container_class
end

def container_options

See {Controller::Serve#setup}.
Options for the container.
def container_options
	{}
end

def controller

Prepare a new controller for the command.
def controller
	Controller::Proxy.new(self)
end

def endpoint(**options)

The endpoint to bind to.
def endpoint(**options)
	Async::HTTP::Endpoint.parse(@options[:bind], timeout: @options[:timeout], **options)
end