Ruby 获取 HTTP 回应中的所有 Head 信息 2015/05/30 15556 require 'uri' Net::HTTP.get(URI.parse("http://www.oschina.net")) response = Net::HTTP.get_response('www.oschina.net', '/code/list') response.each_key { |key| puts key } # x-cache # p3p # content-type # date # server # transfer-encoding