lib/faraday/request/digestauth.rb
# Internal: Builds the authorization header with the authentication data.
#
# response - A Faraday::Response with the authenticate headers.
#
# Returns a String with the DigestAuth header.
Builds the authorization header with the authentication data.
response - A Faraday::Response with the authenticate headers.

Returns a String with the DigestAuth header.
Builds the authorization header with the authentication data . response - A Faraday :: Response with the authenticate headers . Returns a String with the DigestAuth header .
def header(response)
        uri = response.env[:url]
        uri.user = CGI.escape @user
        uri.password = CGI.escape @password
        realm = response.headers['www-authenticate']
        method = response.env[:method].to_s.upcase
        Net::HTTP::DigestAuth.new.auth_header(uri, realm, method)
      end
def header ( response ) uri = response . env [ :url ] uri . user = CGI . escape @user uri . password = CGI . escape @password realm = response . headers [ 'www-authenticate' ] method = response . env [ :method ] . to_s . upcase Net :: HTTP :: DigestAuth . new . auth_header ( uri , realm , method ) end
Internal: Builds the authorization header with the authentication data.
Internal : Builds the authorization header with the authentication data .
response
<not_specific>