access_test.rb �� JV @�= JV #!/usr/bin/env ruby # coding: utf-8 require 'net/http' require 'time' def show(path, res) puts "---- #{path} ----" puts "Response: #{res.code} #{res.message}" puts "Content-Length: #{res['Content-Length']}" puts "Last-Modified: #{res['Last-Modified']}" if res['Last-Modified'] puts "Allow: #{res['Allow']}" if res['Allow'] puts "(Body Length): #{res.body ? res.body.length