module Aws::Rest::Response::HeaderListParser

def read_value(buffer)

def read_value(buffer)
  until buffer.eos?
    case buffer.peek(1)
    when ' ', "\t"
      # drop leading whitespace
      buffer.getch
      next
    when '"'
      buffer.getch # drop the quote and advance
      return read_quoted_value(buffer)
    else
      return read_unquoted_value(buffer)
    end
  end
  # buffer is only whitespace
  nil
end