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-0.6.1 lib/faraday/request/gateway.rb
yapper-0.1.7 lib/faraday/request/gateway.rb
fullcontact-0.6.0 lib/faraday/request/gateway.rb
fullcontact-0.5.0 lib/faraday/request/gateway.rb
fullcontact-0.4.4 lib/faraday/request/gateway.rb
fullcontact-0.4.1 lib/faraday/request/gateway.rb
fullcontact-0.3.3 lib/faraday/request/gateway.rb
fullcontact-0.3.2 lib/faraday/request/gateway.rb
yammer-0.1.2 lib/faraday/request/gateway.rb
fullcontacter-0.3.2 lib/faraday/request/gateway.rb
fullcontact-0.3.1 lib/faraday/request/gateway.rb
fullcontact-0.3.0 lib/faraday/request/gateway.rb
angellist_api-1.0.1 lib/faraday/request/gateway.rb
angellist_api-0.1.2 lib/faraday/request/gateway.rb
fullcontact-0.2.0 lib/faraday/request/gateway.rb
cashstar-0.1.5 lib/faraday/request/gateway.rb
cashstar-0.1.4 lib/faraday/request/gateway.rb
angellist_api-1.0.0 lib/faraday/request/gateway.rb
fullcontact-0.1.4 lib/faraday/request/gateway.rb
fullcontact-0.1.3 lib/faraday/request/gateway.rb