blob: 852903d592e2cc5a4d8f86c5a524c14fd10ed6aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
module Excon
module Middleware
class ResponseParser < Excon::Middleware::Base
def response_call(datum)
unless datum.has_key?(:response)
datum = Excon::Response.parse(datum[:connection].send(:socket), datum)
end
@stack.response_call(datum)
end
end
end
end
|