Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,在 shell 中,我可以使用 curl & do
curl -I http://google.com
它会打印出原始的http头。这在红宝石中的替代品是什么?
问题是,如何raw http headers在 Ruby 中打印?
raw http headers
require 'open-uri' open("http://google.com"){|f| p f.meta }