[Ruby] Using Etags With Open-uri

by tanabe on January 21, 2005

RedHandedから。

http://redhanded.hobix.com/inspect/usingEtagsWithOpenUri.html

With open-uri, you can access a file over FTP or HTTP and read from like it was any other IO handle (using read.) For HTTP resources, you can access headers through the meta accessor:

こちらはRubyリファレンスの該当項