This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build a dummy http handler that extends the default handler | |
# that outputs the request body before making the request (via super) | |
# then check the response body | |
# req is a AWS::Core::Http::Request object | |
# resp is a AWS::Core::Http::Response object | |
default_handler = AWS.config.http_handler | |
debug_handler = AWS::Core::Http::Handler.new(default_handler) do |req,resp| | |
puts "REQUEST BODY: #{req.body}" | |
super(req,resp) |