-
Notifications
You must be signed in to change notification settings - Fork 0
View http chunked encoding content with each chunk
mashihua/ChunkedView
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Copyright 2011 Shihua Ma This is a small, useful ruby script that help you to visual you chunked encoding of http response in your mind. ========================================= Example: require "chunkedview" c = ChunkedView.new c.get "http://www.google.com/search?q=twitter",true puts "Response code: #{c.code}" puts "Response chuncked length: #{c.chunk.length}" puts "Response html length: #{c.body.join('').length}" puts "Compressed html length: #{c.chunk.join('').length}" puts "Response headers:" c.headers.each{|k,v| puts "\t#{k}: #{v}" } puts "Response Bodys:" #display html c.body.each{|k| print k }
About
View http chunked encoding content with each chunk
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published