thecoshman / http

Host These Things Please - a basic http server for hosting a folder fast and simply
MIT License
444 stars 30 forks source link

Compress generated pages on-the-fly #29

Closed nabijaczleweli closed 7 years ago

nabijaczleweli commented 7 years ago

Like #7 but much easier to apply since we have raw strings that we can compress and most of the data we send should compress well.

nabijaczleweli commented 7 years ago

Accept-Encoding header declared in D.2.3 of RFC1945 (HTTP/1.0), defined in 14.3 of RFC2616.

thecoshman commented 7 years ago

Is this really required for 1.1 compliance? Maybe just handling the request for compression and saying no would suffice? But iirc server offers compression then client scooters like accepts...

nabijaczleweli commented 7 years ago

It's in HTTP/1.1 and I assumed that's what the milestone is for v0v

nabijaczleweli commented 7 years ago

What should be the default compression level? Just default, right?

thecoshman commented 7 years ago

Yeah, I think for 1.1 we should support handling compression... But saying there is none I think is valid. But if you can manage something, may as well throw it in

nabijaczleweli commented 7 years ago

Closed via #32