mathi...@googlemail.com
unread,Jun 7, 2012, 12:55:52 PM6/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
I apologise if this has already been covered, but I have not been able to find an answer.
The $http service returns a promise object with success and error methods which in turn are passed arguments which include a function called headers()
To get a header, such as the response content-type, I need to call headers( "Content-Type" ). However, I am not concerned with individual headers and would just like to request all headers (like calling getAllResponseHeaders() on an XMLHttpRequest object).
Is this possible with AngularJS? It seems odd that the headers argument passed back through $http is a function to acquire individual headers, rather than a map of headers.