lib/async/http/endpoint.rb in async-http-0.70.0 vs lib/async/http/endpoint.rb in async-http-0.71.0

- old
+ new

@@ -60,10 +60,10 @@ # @option scheme [String] the scheme to use, overrides the URL scheme. # @option hostname [String] the hostname to connect to (or bind to), overrides the URL hostname (used for SNI). # @option port [Integer] the port to bind to, overrides the URL port. # @option ssl_context [OpenSSL::SSL::SSLContext] the context to use for TLS. - # @option alpn_protocols [Array<String>] the alpn protocols to negotiate. + # @option alpn_protocols [Array(String)] the alpn protocols to negotiate. def initialize(url, endpoint = nil, **options) super(**options) raise ArgumentError, "URL must be absolute (include scheme, host): #{url}" unless url.absolute?