Sha256: c14597e16f905ec309b2ebca88ee8436e278af355ec3f281bde0040d85e0e635

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Faraday
  module DigestAuth
    # Connection methods
    module Connection
      # Public: Adds the digest auth middleware at the top and sets the user and
      # password.
      #
      # user     - A String with the user.
      # password - A String with the password.
      #
      def digest_auth(user, password)
        builder.insert(0, Faraday::Request::DigestAuth, user, password)
      end
    end
  end
end

Faraday::Connection.include Faraday::DigestAuth::Connection

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faraday-digestauth-0.4.1 lib/faraday/digestauth/connection.rb