handle (WWW::Mechanize::Chain::AuthHeaders)

    # File lib/www/mechanize/chain/auth_headers.rb, line 17
            def handle(ctx, params)
              uri     = params[:uri]
              request = params[:request]

              if( @auth_hash[uri.host] )
                case @auth_hash[uri.host]
                when :basic
                  request.basic_auth(@user, @password)
                when :iis_digest
                    digest_response = self.gen_auth_header(uri,request, @digest, true)
                    request['Authorization'] = digest_response
                when :digest
                  if @digest
                    digest_response = self.gen_auth_header(uri,request, @digest)
                    request['Authorization'] = digest_response
                  end
                end
              end
              super
            end