Module: Typhoeus::Config
Overview
The Typhoeus configuration used to set global options.
Instance Attribute Summary collapse
-
#block_connection ⇒ Boolean
Defines wether the connection is blocked.
-
#memoize ⇒ Boolean
Defines wether GET requests are memoized when using the Hydra.
-
#verbose ⇒ Boolean
Defines wether curls debug output is shown.
Instance Attribute Details
#block_connection ⇒ Boolean
Defines wether the connection is blocked. Defaults to false. When set to true, only stubbed requests are allowed. A Errors::NoStub error is raised, when trying to do a real request. Its possible to work around inside Typhoeus#with_connection.
29 30 31 |
# File 'lib/typhoeus/config.rb', line 29 def block_connection @block_connection end |
#memoize ⇒ Boolean
Defines wether GET requests are memoized when using the Hydra.
37 38 39 |
# File 'lib/typhoeus/config.rb', line 37 def memoize @memoize end |
#verbose ⇒ Boolean
Defines wether curls debug output is shown. Unfortunately it prints to stderr.
45 46 47 |
# File 'lib/typhoeus/config.rb', line 45 def verbose @verbose end |