module Falcon::Environment::Server

def make_server(endpoint)

@returns [Falcon::Server] The server instance.
@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