Class: Net::HTTP
- Inherits:
-
Object
- Object
- Net::HTTP
- Defined in:
- lib/sv/ext/net_http.rb
Instance Method Summary collapse
Instance Method Details
#connect ⇒ Object
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_connect ⇒ Object
6 |
# File 'lib/sv/ext/net_http.rb', line 6 alias_method :orig_connect, :connect |