# File lib/client.rb, line 19
  def to_s
    a = @msg
    b = ''
    b += "#{@scheme}://" if @scheme
    b += @host if @host
    b +=  ":#{@port}" if @port
    b += @path if @path
    b += "?#{@query}" if @query
    b ? b = "#{b} #{@status}" : b = @status.to_s if @status
    b ? b = "#{b} #{@reason}" : b = "- #{@reason}" if @reason
    b ? b = "#{b}: device #{@device}" : b = "device #{@device}" if @device
    b ? "#{a} #{b}" : a
  end