I use $http to make an api call that sends some custom header like X-Foo . However, I still cannot figure out how to read them. Inside the function $http({...}).success(function (data, status, headers, config) {...}) headers is a function that should give me a hash of all the headers, but only show the content-type header . Is there any way to get response headers?
angularjs
Joy Dutta Jun 11 '13 at 7:14 2013-06-11 07:14
source share