Sha256: 4fee4d1031d03c0e94953c2d38aa34209332ec6299a19a978f4eeea3d8fa2261
Contents?: true
Size: 682 Bytes
Versions: 36
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true module Faraday # @!parse # # RequestOptions contains the configurable properties for a Faraday request. # class RequestOptions < Options; end RequestOptions = Options.new(:params_encoder, :proxy, :bind, :timeout, :open_timeout, :read_timeout, :write_timeout, :boundary, :oauth, :context, :on_data) do def []=(key, value) if key && key.to_sym == :proxy super(key, value ? ProxyOptions.from(value) : nil) else super(key, value) end end def stream_response? on_data.is_a?(Proc) end end end
Version data entries
36 entries across 36 versions & 3 rubygems