then we are get only two properties

Object {content-type: "application/json; charset=utf-8", cache-control: 
"max-age=0, private, must-revalidate"}

On Saturday, June 23, 2012 at 1:58:42 PM UTC+5:30, Vojta Jína wrote:
>
> Just call headers() without argument, will give you a hash object will all 
> headers parsed and normalized.
>
> V.
>
> On Thu, Jun 7, 2012 at 9:55 AM, <[email protected] <javascript:>> 
> wrote:
>
>> 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.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "AngularJS" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/angular/-/7khd9yQ7qqYJ.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/angular?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to