lib/falcon/hosts.rb in falcon-0.30.0 vs lib/falcon/hosts.rb in falcon-0.31.0

- old
+ new

@@ -23,11 +23,11 @@ require_relative 'proxy' require_relative 'redirection' require 'async/container' require 'async/container/controller' -require 'async/http/url_endpoint' +require 'async/http/endpoint' module Falcon class Host def initialize(environment) @environment = environment.flatten @@ -109,11 +109,11 @@ def each(&block) @named.each(&block) end def endpoint - @server_endpoint ||= Async::HTTP::URLEndpoint.parse( + @server_endpoint ||= Async::HTTP::Endpoint.parse( 'https://[::]', ssl_context: self.ssl_context, reuse_address: true ) end @@ -161,11 +161,11 @@ def run(container = Async::Container::Forked.new, **options) @named.each do |name, host| host.run(container) end - secure_endpoint = Async::HTTP::URLEndpoint.parse(options[:bind_secure], ssl_context: self.ssl_context) - insecure_endpoint = Async::HTTP::URLEndpoint.parse(options[:bind_insecure]) + secure_endpoint = Async::HTTP::Endpoint.parse(options[:bind_secure], ssl_context: self.ssl_context) + insecure_endpoint = Async::HTTP::Endpoint.parse(options[:bind_insecure]) container.run(count: 1, name: "Falcon Proxy") do |task, instance| proxy = self.proxy proxy_server = Falcon::Server.new(proxy, secure_endpoint)