Class Typhoeus::Response
In: lib/typhoeus/response.rb
lib/typhoeus/response/header.rb
lib/typhoeus/response/status.rb
lib/typhoeus/response/informations.rb
lib/typhoeus/response/cacheable.rb
Parent: Object

This class represents the response.

Methods

handled_response   mock   mock?   new  

Included Modules

Response::Informations Response::Status Response::Cacheable

Classes and Modules

Module Typhoeus::Response::Cacheable
Module Typhoeus::Response::Informations
Module Typhoeus::Response::Status
Class Typhoeus::Response::Header

Attributes

handled_response  [W]  Set the handled response.
mock  [W]  @api private
options  [RW]  The provided options, which contain all the informations about the request.

@return [ Hash ]

request  [RW]  Remembers the corresponding request.

@example Get request.

  request = Typhoeus::Request.get("www.example.com")
  response = request.run
  request == response.request
  #=> true

@return [ Typhoeus::Request ]

Public Class methods

Create a new response.

@example Create a response.

 Response.new

@param [ Hash ] options The options hash.

@return [ Response ] The new response.

Public Instance methods

Returns the handled_response if it has been defined; otherwise, returns the response

@return [ Object ] The result of callbacks

  done on the response or the original response.

Returns whether this request is mocked or not.

@api private

mock?()

Alias for mock

[Validate]