Method: VCR::Middleware::Faraday::RequestHandler#handle
- Defined in:
- lib/vcr/middleware/faraday.rb
#handle ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/vcr/middleware/faraday.rb', line 47 def handle # Faraday must be exclusive here in case another library hook is being used. # We don't want double recording/double playback. VCR.library_hooks.exclusive_hook = :faraday collect_chunks if env.request.stream_response? super ensure response = defined?(@vcr_response) ? @vcr_response : nil invoke_after_request_hook(response) unless delay_finishing? end |