Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (27 sloc) 644 Bytes
# frozen_string_literal: true
module Excon
module Middleware
class Base
# Returns the list of parameters that this middleware uses that are valid
# as arguments to `Connection#request` or `Connection#new`.
def self.valid_parameter_keys
[]
end
def initialize(stack)
@stack = stack
end
def error_call(datum)
# do stuff
@stack.error_call(datum)
end
def request_call(datum)
# do stuff
@stack.request_call(datum)
end
def response_call(datum)
@stack.response_call(datum)
# do stuff
end
end
end
end
You can’t perform that action at this time.