HTTPAccess::DebugSocket — debugging support

Methods
Attributes
[RW] debug_dev
Public Class methods
create_socket(host, port, debug_dev)
# File lib/facets/more/httpaccess.rb, line 1118
    def create_socket(host, port, debug_dev)
      debug_dev << "! CONNECT TO #{host}:#{port}\n"
      socket = new(host, port)
      socket.debug_dev = debug_dev
      socket.log_connect
      socket
    end
new(*args)
# File lib/facets/more/httpaccess.rb, line 1129
  def initialize(*args)
    super
    @debug_dev = nil
  end
Public Instance methods
<<(str)
# File lib/facets/more/httpaccess.rb, line 1155
  def <<(str)
    super
    @debug_dev << str
  end
close()
# File lib/facets/more/httpaccess.rb, line 1138
  def close
    super
    @debug_dev << '! CONNECTION CLOSED' << "\n"
  end
gets(*args)
# File lib/facets/more/httpaccess.rb, line 1143
  def gets(*args)
    str = super
    @debug_dev << str if str
    str
  end
log_connect()
# File lib/facets/more/httpaccess.rb, line 1134
  def log_connect
    @debug_dev << '! CONNECTION ESTABLISHED' << "\n"
  end
read(*args)
# File lib/facets/more/httpaccess.rb, line 1149
  def read(*args)
    str = super
    @debug_dev << str if str
    str
  end