Sha256: 580366c68dc2584330b21177a23b6bc016956151258d73d0d683e8e7db34ee8f
Contents?: true
Size: 475 Bytes
Versions: 16
Compression:
Stored size: 475 Bytes
Contents
require 'faraday' require 'faraday/digestauth' module Faraday # Reopen Faraday::Connection to add a helper to set the digest auth data. class 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
Version data entries
16 entries across 16 versions & 2 rubygems