jQuery - pobierz nagłówki odpowiedzi AJAX

Jak uzyskać dostęp do nagłówków odpowiedzi, gdy uruchamiamy żądanie ajax przy użyciu jQuery? Próbowałem z poniższym kodem zgodnie z sugestiami podanymi w niektórych witrynach. Alexhr obiekt ma wartość null. Widzęxhr obiekt w tym kontekście. Ale nie ma metod dostępu do nagłówków odpowiedzi.

    function SampleMethod(){
    var savedThis=this;
        this.invokeProcedure=function(procedurePath){
            $.ajax({
                    type: "GET",
                    url: procedurePath,
                    dataType: "json",
                    success: function(data,status,xhr){savedThis.resultSetHandler(data,status,xhr);}
                });
        }

        this.resultSetHandler=function(data,status,xhrObj){
            //Handle the result
        }

        this.errorHandler=function(args){
            //Handle the result
        }

    }

var sampleObj=new SampleMethod();
sampleObj.invokeProcedure('url');

questionAnswers(2)

yourAnswerToTheQuestion