Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/sv/ext/net_http.rb

Instance Method Summary collapse

Instance Method Details

#connectObject



8
9
10
11
12
13
14
15
16
# File 'lib/sv/ext/net_http.rb', line 8

def connect
  path = Pathname.new(address)
  if path.exist?
    @socket = Net::BufferedIO.new UNIXSocket.new address
    on_connect
  else
    orig_connect
  end
end

#orig_connectObject



6
# File 'lib/sv/ext/net_http.rb', line 6

alias_method :orig_connect, :connect