Sha256: f2812ddf915d423cab81954f9ec0c5fce0bf483c4b69afcf2c340f35eb42ece7
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
# -*- coding: utf-8 -*- require 'net/http/digest_auth' require 'faraday' require 'faraday/digestauth/version' require 'faraday/digestauth/connection' require 'faraday/request/digestauth' # Register the middleware as a Request middleware with the name :digest if Faraday.respond_to?(:register_middleware) # Faraday 0.8 Faraday.register_middleware :request, :digest => Faraday::Request::DigestAuth elsif Faraday::Request.respond_to?(:register_middleware) # Faraday 0.9 Faraday::Request.register_middleware :digest => Faraday::Request::DigestAuth elsif Faraday::Request.respond_to?(:register_lookup_modules) # Faraday 0.7 Faraday::Request.register_lookup_modules :digest => :DigestAuth end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faraday-digestauth-0.2.0 | lib/faraday/digestauth.rb |