Question: I need to read response headers in an Ajax request made by backbone.js fetch method. is there any way to read headers if I override the fetch method:

```
var PageCollection = Backbone.Collection.extend({

    url: 'http://localhost/cms?_mn=Mod_Admin&_mf=getAllPages',

    model: PageModel,

    fetch: function (options) {
        Backbone.Collection.prototype.fetch.call(this, options);
        // The above line of code works and fetch the dataset 
        // BUT how i can read the response headers at this point
    }
});

```

Answer: 
take look at my implementation and how I used [parse function](http://backbonejs.org/#Collection-parse) 

```
var CustomPageCollection = Backbone.Collection.extend({
    model: CustomPage,
    url: '/pb/editor/pages',
    parse: function(resp, xhr) {
        this.paginationInfo = JSON.parse(xhr.getResponseHeader('X-Pagination-Info'));
        return resp.items;
    }
});

```
i found out a nicer way:
the collection fires a "parse" function, when coming back from the server
[BakcboneJs - collection Parse](http://backbonejs.org/#Collection-parse)

```
parse:function(a,b,c){      
    console.log("a",a);
    console.log("b",b);
    console.log("c",c);
},

```

our buddy is at b :)