Sha256: e86959a91f2c4de71e2847cba3664d1c24a67d3c282a1121501dbe8e72937a7e

Contents?: true

Size: 646 Bytes

Versions: 103

Compression:

Stored size: 646 Bytes

Contents

# frozen_string_literal: true

module Faraday
  # RequestOptions contains the configurable properties for a Faraday request.
  class RequestOptions < Options.new(:params_encoder, :proxy, :bind,
                                     :timeout, :open_timeout, :read_timeout,
                                     :write_timeout, :boundary, :oauth,
                                     :context, :on_data)

    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

103 entries across 90 versions & 17 rubygems

Version Path
faraday-1.10.4 lib/faraday/options/request_options.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/faraday-1.2.0/lib/faraday/options/request_options.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/faraday-1.10.3/lib/faraday/options/request_options.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/faraday-2.7.4/lib/faraday/options/request_options.rb
zilla-0.2.0 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.4/lib/faraday/options/request_options.rb
faraday-2.7.4 lib/faraday/options/request_options.rb
faraday-1.10.3 lib/faraday/options/request_options.rb
faraday-2.7.3 lib/faraday/options/request_options.rb
faraday-2.7.2 lib/faraday/options/request_options.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/faraday-2.5.2/lib/faraday/options/request_options.rb
faraday-2.7.1 lib/faraday/options/request_options.rb
faraday-2.7.0 lib/faraday/options/request_options.rb
faraday-2.6.0 lib/faraday/options/request_options.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/faraday-2.5.2/lib/faraday/options/request_options.rb
faraday-1.10.2 lib/faraday/options/request_options.rb
faraday-2.5.2 lib/faraday/options/request_options.rb
faraday-2.5.1 lib/faraday/options/request_options.rb
faraday-2.5.0 lib/faraday/options/request_options.rb
faraday-1.10.1 lib/faraday/options/request_options.rb
faraday-2.4.0 lib/faraday/options/request_options.rb