module Typhoeus::Request::Callbacks::Types
def on_complete(&block)
-
(Array
- All on_complete blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_complete. -
def on_complete(&block) @on_complete ||= [] @on_complete << block if block_given? @on_complete end
def on_failure(&block)
-
(Array
- All on_failure blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_failure. -
def on_failure(&block) @on_failure ||= [] @on_failure << block if block_given? @on_failure end
def on_headers(&block)
-
(Array
- All on_headers blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_headers. -
def on_headers(&block) @on_headers ||= [] @on_headers << block if block_given? @on_headers end
def on_progress(&block)
-
(Array
- All on_progress blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_progress. -
def on_progress(&block) @on_progress ||= [] @on_progress << block if block_given? @on_progress end
def on_success(&block)
-
(Array
- All on_success blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_success. -
def on_success(&block) @on_success ||= [] @on_success << block if block_given? @on_success end