{"action":"created","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/540","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/540/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/540/events","html_url":"https://github.com/l-lin/angular-datatables/issues/540","id":121488960,"number":540,"title":"Server side processing and recordsTotal","user":{"login":"radar1975","id":1986318,"avatar_url":"https://avatars.githubusercontent.com/u/1986318?v=3","gravatar_id":"","url":"https://api.github.com/users/radar1975","html_url":"https://github.com/radar1975","followers_url":"https://api.github.com/users/radar1975/followers","following_url":"https://api.github.com/users/radar1975/following{/other_user}","gists_url":"https://api.github.com/users/radar1975/gists{/gist_id}","starred_url":"https://api.github.com/users/radar1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radar1975/subscriptions","organizations_url":"https://api.github.com/users/radar1975/orgs","repos_url":"https://api.github.com/users/radar1975/repos","events_url":"https://api.github.com/users/radar1975/events{/privacy}","received_events_url":"https://api.github.com/users/radar1975/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T13:49:32Z","updated_at":"2015-12-15T14:50:06Z","closed_at":"2015-12-15T14:50:06Z","body":"Hi,\r\n\r\nWhat about being able to obtain the total count from the http header instead\r\nLet say i have start=1 and length=5 and serveur returns 5 objects but total number of records is returned in the HTTP header as X-Collection-Count:2000.\r\n\r\nHow could i use the xhr event (https://datatables.net/reference/event/xhr) in an angular way so i can set the recordsFiltered and recordsTotal\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/comments/164785927","html_url":"https://github.com/l-lin/angular-datatables/issues/540#issuecomment-164785927","issue_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/540","id":164785927,"user":{"login":"l-lin","id":5452304,"avatar_url":"https://avatars.githubusercontent.com/u/5452304?v=3","gravatar_id":"","url":"https://api.github.com/users/l-lin","html_url":"https://github.com/l-lin","followers_url":"https://api.github.com/users/l-lin/followers","following_url":"https://api.github.com/users/l-lin/following{/other_user}","gists_url":"https://api.github.com/users/l-lin/gists{/gist_id}","starred_url":"https://api.github.com/users/l-lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-lin/subscriptions","organizations_url":"https://api.github.com/users/l-lin/orgs","repos_url":"https://api.github.com/users/l-lin/repos","events_url":"https://api.github.com/users/l-lin/events{/privacy}","received_events_url":"https://api.github.com/users/l-lin/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T14:50:06Z","updated_at":"2015-12-15T14:50:06Z","body":"Nope, DT expects JSON data to be returned to it in the response body.\r\nMore info in the [DT documentation](https://datatables.net/manual/server-side)."}}