Class: VCR::Middleware::Excon::NonStreamingResponseBodyReader
- Inherits:
-
Object
- Object
- VCR::Middleware::Excon::NonStreamingResponseBodyReader
- Defined in:
- lib/vcr/middleware/excon.rb
Overview
Reads the body when no streaming is done.
Class Method Summary collapse
-
.read_body_from(response_params) ⇒ Object
Provides a duck-typed interface that matches that of ‘StreamingResponseBodyReader`.
Class Method Details
.read_body_from(response_params) ⇒ Object
Provides a duck-typed interface that matches that of ‘StreamingResponseBodyReader`. The request handler will use this to get the response body.
214 215 216 |
# File 'lib/vcr/middleware/excon.rb', line 214 def self.read_body_from(response_params) response_params.fetch(:body) end |