On Mar 12, 2012, at 1:33 PM, Mikeal Rogers wrote:

> 
> On Mar 12, 2012, at March 12, 20121:23 PM, Dick Hardt wrote:
> 
> 
> If a server is sending you gzipped responses and you are not sending an 
> accept-encoding header for gzip then the server is breaking the HTTP spec.

Understood. They are doing what they are doing. Even if they did not force 
compression, it would be polite to do what they ask.

>> 
>> btw: I find https.request to be the right level of abstraction for my 
>> application. I don't require much wrapper code for my applications. The only 
>> thing that I would need would be one that did decompression, and I could not 
>> find one for that, and the samples out there did not show how to get the 
>> full response in one chunk.
> 
> You say it's the right level of abstraction but you have all of this code on 
> top of it which you think belongs in that layer of abstraction.

Currently I have a small amount of code on top of https.request that sets utf8 
and concats the response -- not sure why you are saying I have lots of code. I 
would see this as being very similar to the setEncoding functionality. Given 
the decompression code is already there (I'm assuming), I fail to see the 
negative impact. What am I missing? (wanting to understand!)

> We have a good history of this functionality being written in to higher order 
> HTTP clients and node's vision of a slim core means that everyone needs to 
> get comfortable using third party dependencies.

I use lots of 3rd party modules in many other places. :)

Is there a 3rd party client side HTTP request library that does decompression 
for me that you know of? 

btw: I'm VERY familiar with the tradeoffs of core vs modules from my days in 
the Perl community.

-- Dick

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to