Skip to content

@jugyo /http_trace.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Earthquake.once do
require 'webmock'
WebMock.allow_net_connect!
WebMock.after_request do |request, response|
puts "#{request.method.upcase} #{request.uri} #{request.body}".c(34)
puts response.status.join(' ').c(34)
puts response.body.c(34)
# puts response.headers.map {|key, val| "#{key}: #{val}" }.join("\n")
Readline.refresh_line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.