module Typhoeus::Request::BlockConnection
def blocked?
-
(Boolean)
- True if blocked, false else.
Other tags:
- Example: Blocked? -
def blocked? if block_connection.nil? Typhoeus::Config.block_connection else block_connection end end
def run
-
(Typhoeus::Errors::NoStub)
- If connection is blocked
Other tags:
- Example: Run request. -
def run if blocked? raise Typhoeus::Errors::NoStub.new(self) else super end end