module Falcon::Environment::Server
def authority
The server authority. Defaults to the server name.
def authority self.name end
def cache
def cache false end
def client_endpoint
A client endpoint that can be used to connect to the server.
def client_endpoint ::Async::HTTP::Endpoint.parse(url) end
def container_options
def container_options { restart: true, count: self.count, health_check_timeout: 30, }.compact end
def count
Number of instances to start. By default (when nil), uses `Etc.nprocessors`.
def count nil end
def endpoint
The upstream endpoint that will handle incoming requests.
def endpoint ::Async::HTTP::Endpoint.parse(url).with(**endpoint_options) end
def endpoint_options
def endpoint_options { reuse_address: true, timeout: self.timeout, } end
def make_server(endpoint)
@parameter endpoint [IO::Endpoint] The endpoint to bind to.
Make a server instance using the given endpoint. The endpoint may be a bound endpoint, so we take care to specify the protocol and scheme as per the original endpoint.
def make_server(endpoint) Falcon::Server.new(self.middleware, endpoint, protocol: self.endpoint.protocol, scheme: self.endpoint.scheme) end
def preload
Any scripts to preload before starting the server.
def preload [] end
def service_class
The service class to use for the proxy.
def service_class Service::Server end
def timeout
def timeout nil end
def url
def url "http://[::]:9292" end
def verbose
def verbose false end