Re: [XHR2] HTTP Trailers

On Oct 26, 2010, at 12:02 PM, Julian Reschke wrote:

> On 26.10.2010 12:12, Anne van Kesteren wrote:
>> ...
>> If they were exposed via getResponseHeader() you would have the
>> potential for clashes so that does not seem like a good idea.
>> ...
> 
> The clashes would be the same as for any repeating header, right?

Pre-existing XHR code might get confused if the results from getResponseHeader() change in the course of loading more of the stream. Seems safer to keep it separate, if it is useful to pass this info at all. Also, header fields like Content-Type are probably not going to have their usual effect if sent as trailers. So it's good to distinguish for that reason too.

Regards,
Maciej

Received on Sunday, 31 October 2010 13:28:14 UTC