class VCR::Request::FiberAware

Provides fiber-awareness for the {VCR::Configuration#around_http_request} hook.

Public Instance Methods

proceed() click to toggle source

Yields the fiber so the request can proceed.

@return [VCR::Response] the response from the request

# File lib/vcr/structs.rb, line 311
def proceed
  Fiber.yield
end
to_proc() click to toggle source

Builds a proc that allows the request to proceed when called. This allows you to treat the request as a proc and pass it on to a method that yields (at which point the request will proceed).

@return [Proc] the proc

# File lib/vcr/structs.rb, line 320
def to_proc
  lambda { proceed }
end