lib/httpx/io/unix.rb in httpx-0.1.0 vs lib/httpx/io/unix.rb in httpx-0.2.0
- old
+ new
@@ -1,14 +1,17 @@
+# frozen_string_literal: true
+
require "forwardable"
module HTTPX
class UNIX < TCP
extend Forwardable
def_delegator :@uri, :port, :scheme
- def initialize(uri, options)
+ def initialize(uri, addresses, options)
@uri = uri
+ @addresses = addresses
@state = :idle
@options = Options.new(options)
@path = @options.transport_options[:path]
@fallback_protocol = @options.fallback_protocol
if @options.io