Sha256: 3dd55a8617d87de52d3434567944388f0b020a4aa30d6ebe18a2eea6b752ceb1

Contents?: true

Size: 1.48 KB

Versions: 12

Compression:

Stored size: 1.48 KB

Contents

module Typhoeus

  # The Typhoeus configuration used to set global
  # options.
  # @example Set the configuration options within a block.
  #   Typhoeus.configure do |config|
  #     config.verbose = true
  #   end
  #
  # @example Set the configuration directly.
  #   Typhoeus::Config.verbose = true
  module Config
    extend self

    # Defines whether the connection is blocked.
    # Defaults to false. When set to true, only
    # stubbed requests are allowed. A
    # {Typhoeus::Errors::NoStub} error is raised,
    # when trying to do a real request. It's possible
    # to work around inside
    # {Typhoeus#with_connection}.
    #
    # @return [ Boolean ]
    #
    # @see Typhoeus::Request::BlockConnection
    # @see Typhoeus::Hydra::BlockConnection
    # @see Typhoeus#with_connection
    # @see Typhoeus::Errors::NoStub
    attr_accessor :block_connection

    # Defines whether GET requests are memoized when using the {Typhoeus::Hydra}.
    #
    # @return [ Boolean ]
    #
    # @see Typhoeus::Hydra
    # @see Typhoeus::Hydra::Memoizable
    attr_accessor :memoize

    # Defines whether curls debug output is shown.
    # Unfortunately it prints to stderr.
    #
    # @return [ Boolean ]
    #
    # @see http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTVERBOSE
    attr_accessor :verbose

    # Defines whether requests are cached.
    #
    # @return [ Object ]
    #
    # @see Typhoeus::Hydra::Cacheable
    # @see Typhoeus::Request::Cacheable
    attr_accessor :cache
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
typhoeus-0.7.3 lib/typhoeus/config.rb
typhoeus-0.7.2 lib/typhoeus/config.rb
typhoeus-0.7.1 lib/typhoeus/config.rb
typhoeus-0.7.0 lib/typhoeus/config.rb
typhoeus-0.7.0.pre1 lib/typhoeus/config.rb
typhoeus-0.6.9 lib/typhoeus/config.rb
typhoeus-0.6.8 lib/typhoeus/config.rb
typhoeus-0.6.7 lib/typhoeus/config.rb
typhoeus-0.6.6 lib/typhoeus/config.rb
typhoeus-0.6.5 lib/typhoeus/config.rb
typhoeus-0.6.4 lib/typhoeus/config.rb
typhoeus-0.6.3 lib/typhoeus/config.rb