module Typhoeus::Request::Stubbable

def run

Returns:
  • (Response) - The response.

Other tags:
    Example: Run the request. -
def run
  if response = Expectation.response_for(self)
    execute_headers_callbacks(response)
    self.on_body.each{ |callback| callback.call(response.body, response) }
    finish(response)
  else
    super
  end
end