lib/faraday/request/digestauth.rb
# Public: Sends a first request with an empty body to get the
# authentication headers and then send the same request with the body and
# authorization header.
#
# env - A Hash with the request environment.
#
# Returns a Faraday::Response.
Sends a first request with an empty body to get the
authentication headers and then send the same request with the body and
authorization header.

A Hash with the request environment.

Returns a Faraday::Response.
Sends a first request with an empty body to get the authentication headers and then send the same request with the body and authorization header . A Hash with the request environment . Returns a Faraday :: Response .
def call(env)
        response = handshake(env)
        return response unless response.status == 401
        unless response.headers['www-authenticate'] =~ /Digest +[^\s]+/
          return response
        end
        env[:request_headers]['Authorization'] = header(response)
        @app.call(env)
      end
def call ( env ) response = handshake ( env ) return response unless response . status == 401 unless response . headers [ 'www-authenticate' ] =~ / Digest +[^ \s ]+ / return response end env [ :request_headers ] [ 'Authorization' ] = header ( response ) @app . call ( env ) end
Public: Sends a first request with an empty body to get the
authentication headers and then send the same request with the body and
authorization header.
Public : Sends a first request with an empty body to get the authentication headers and then send the same request with the body and authorization header .
env
<not_specific>