Supporting it means defaulting to using an accept encoding header and then 
decompressing the response automatically. We cannot assume this is always what 
you want.

First of all, this increases the amount of CPU each process will use. Many 
servers won't want to sacrifice CPU for bandwidth.

Second, with the pipe/stream system in request you may actually want to get a 
response gzipped and then store it that way on disc so you'd want to opt out of 
decompression.

Defaulting to one behavior automatically makes too many assumptions. Most 
people use a higher level library anyway, let them sort out what they want 
their behavior and API to look like and keep this out of core. Being able to do 
something doesn't mean we *should* do it :)

-Mikeal

On Mar 12, 2012, at March 12, 201212:40 PM, Dick Hardt wrote:

> Sorry I was not more clear. I can understand not doing compression server 
> side, but I would expect decompression to be part of a client without having 
> to get a library. The code is already in core, so I am confused why it would 
> not make sense for compression to be done in http.request / https.request.
> 
> -- Dick
> 
> On Mar 12, 2012, at 12:26 PM, Mikeal Rogers wrote:
> 
>> compression/decompression are required by SPDY but not required by HTTP.
>> 
>> Supporting gzip in servers is the job of frameworks and the support in 
>> clients is the job of higher level clients like request. Gzip for regular 
>> HTTP is unlikely to go in to core.
>> 
>> -Mikeal
>> 
>> On Mar 12, 2012, at March 12, 20129:48 AM, Dick Hardt wrote:
>> 
>>> Will compression/decompression be part of the refactor? I was surprised 
>>> that I had to write special code client side to decompress gzipped payloads.
>>> 
>>> -- Dick
>>> 
>>> On Mar 10, 2012, at 1:16 PM, Mikeal Rogers wrote:
>>> 
>>>> I've been talking with isaac lately about getting this in to core.
>>>> 
>>>> there is an http refactor coming and this is something i want to get in as 
>>>> part of it.
>>>> 
>>>> On Mar 10, 2012, at 11:59 AM, Mark Hahn <[email protected]> wrote:
>>>> 
>>>>> I didn't even think to check for a module.  I assumed spdy was too new.  
>>>>> I won't underestimate node again.
>>>>> 
>>>>> On Sat, Mar 10, 2012 at 11:35 AM, Nuno Job <[email protected]> wrote:
>>>>> Here you go:
>>>>> 
>>>>> http://github.com/indutny/node-spdy
>>>>> http://blog.nodejitsu.com/what-is-node-spdy
>>>>> 
>>>>> On Sat, Mar 10, 2012 at 7:32 PM, Mark Hahn <[email protected]> wrote:
>>>>> Has anyone worked on implementing spdy in node as an http alternative?
>>>>> 
>>>>> -- 
>>>>> 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
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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
>>>> 
>>>> 
>>>> -- 
>>>> 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
>>> 
>>> 
>>> -- 
>>> 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
>> 
>> 
>> -- 
>> 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
> 
> 
> -- 
> 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

-- 
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