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
cashstar-0.1.3 lib/faraday/request/gateway.rb
peerindex-0.0.1 lib/faraday/request/gateway.rb
cashstar-0.1.2 lib/faraday/request/gateway.rb
cashstar-0.1.1 lib/faraday/request/gateway.rb
cashstar-0.1.0 lib/faraday/request/gateway.rb
angellist_api-0.1.0 lib/faraday/request/gateway.rb
angellist_api-0.0.9 lib/faraday/request/gateway.rb
angellist_api-0.0.8 lib/faraday/request/gateway.rb
angellist_api-0.0.7 lib/faraday/request/gateway.rb
angellist_api-0.0.6 lib/faraday/request/gateway.rb
angellist_api-0.0.5 lib/faraday/request/gateway.rb
yammer-0.1.1 lib/faraday/request/gateway.rb
evrythng-0.0.5 lib/faraday/request/gateway.rb
evrythng-0.0.3 lib/faraday/request/gateway.rb
evrythng-0.0.2 lib/faraday/request/gateway.rb
yammer-0.1.0 lib/faraday/request/gateway.rb
yammer-0.0.2 lib/faraday/request/gateway.rb
yammer-0.0.1 lib/faraday/request/gateway.rb
evrythng-0.0.1 lib/faraday/request/gateway.rb