Sha256: ec2a17a50d379ab9ad34f5ce54550d7a0f1586c42e2b782f39acabaf901e63de

Contents?: true

Size: 314 Bytes

Versions: 59

Compression:

Stored size: 314 Bytes

Contents

require 'faraday'

# @private
module Faraday
  # @private
  class Request::Gateway < Faraday::Middleware
    def call(env)
      url = env[:url].dup
      url.host = @gateway
      env[:url] = url
      @app.call(env)
    end

    def initialize(app, gateway)
      @app, @gateway = app, gateway
    end
  end
end

Version data entries

59 entries across 59 versions & 10 rubygems

Version Path
fullcontact-api-ruby-0.1.0 lib/faraday/request/gateway.rb
fullcontact-0.18.0 lib/faraday/request/gateway.rb
fullcontact-0.17.0 lib/faraday/request/gateway.rb
cashstar-ruby-0.2.4 lib/faraday/request/gateway.rb
cashstar-ruby-0.2.3 lib/faraday/request/gateway.rb
cashstar-ruby-0.2.2 lib/faraday/request/gateway.rb
fullcontact-0.16.0 lib/faraday/request/gateway.rb
fullcontact-0.15.0 lib/faraday/request/gateway.rb
fullcontact-0.14.0 lib/faraday/request/gateway.rb
fullcontact-0.13.0 lib/faraday/request/gateway.rb
cashstar-ruby-0.2.1 lib/faraday/request/gateway.rb
cashstar-ruby-0.2.0 lib/faraday/request/gateway.rb
fullcontact-0.12.0 lib/faraday/request/gateway.rb
fullcontact-0.11.0 lib/faraday/request/gateway.rb
fullcontact-0.10.0 lib/faraday/request/gateway.rb
cashstar-ruby-0.1.8 lib/faraday/request/gateway.rb
fullcontact-0.9.0 lib/faraday/request/gateway.rb
fullcontact-0.8.2 lib/faraday/request/gateway.rb
fullcontact-0.7.0 lib/faraday/request/gateway.rb
cashstar-ruby-0.1.7 lib/faraday/request/gateway.rb