Sha256: 698677a89837ed02375f09857beea07220f900298d88ca9fb4bd5f4c0bedea2b
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
module Restforce # Base class that all middleware can extend. Provides some convenient helper # functions. class Middleware < Faraday::Middleware autoload :RaiseError, 'restforce/middleware/raise_error' autoload :Authentication, 'restforce/middleware/authentication' autoload :Authorization, 'restforce/middleware/authorization' autoload :InstanceURL, 'restforce/middleware/instance_url' autoload :Multipart, 'restforce/middleware/multipart' autoload :Mashify, 'restforce/middleware/mashify' autoload :Caching, 'restforce/middleware/caching' autoload :Logger, 'restforce/middleware/logger' autoload :Gzip, 'restforce/middleware/gzip' autoload :CustomHeaders, 'restforce/middleware/custom_headers' def initialize(app, client, options) @app = app @client = client @options = options end # Internal: Proxy to the client. def client @client end # Internal: Proxy to the client's faraday connection. def connection client.send(:connection) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
restforce-2.5.4 | lib/restforce/middleware.rb |
restforce-2.5.3 | lib/restforce/middleware.rb |
restforce-2.5.2 | lib/restforce/middleware.rb |
restforce-2.5.1 | lib/restforce/middleware.rb |