lib/after_ship/core/request.rb
# Print the low level cURL internals in the console as well as the
# request body and response body when it's available.
#
# @param request [Typhoeus::Request]
Print the low level cURL internals in the console as well as the
request body and response body when it's available.
Print the low level cURL internals in the console as well as the request body and response body when it ' s available .
def make_verbose(request)
      request.options[:verbose] = true
      request.on_complete do |response|
        puts
        puts 'Request body:'
        puts request.options[:body]
        puts
        puts 'Response body:'
        puts response.body
        puts
      end
    end
def make_verbose ( request ) request . options [ :verbose ] = true request . on_complete do | response | puts puts 'Request body:' puts request . options [ :body ] puts puts 'Response body:' puts response . body puts end end
Print the low level cURL internals in the console as well as the
request body and response body when it's available.
Print the low level cURL internals in the console as well as the request body and response body when it ' s available .
request
<not_specific>
<not_specific>
None