core/homeassistant/components/http
Joakim Plate 92aeef82ef Enable compression when sending json to client (#11165)
* Enable compression when sending json to client

Make server compress json content when transmitting to client. Json is quite verbose and compresses well.

A real world example is history_graph requested data for in my case 4 temperature sensors updating every half a second for a graph over 10 days lead to 6MB json which compressed to 200KB using deflate compression.

* Rename variable to request

* Name the variable response instead of request
2018-02-17 21:32:08 -08:00
..
__init__.py Enable compression when sending json to client (#11165) 2018-02-17 21:32:08 -08:00
auth.py Cleanup http (#12424) 2018-02-15 22:06:14 +01:00
ban.py Cleanup http (#12424) 2018-02-15 22:06:14 +01:00
const.py Cleanup http (#12424) 2018-02-15 22:06:14 +01:00
cors.py Cleanup http (#12424) 2018-02-15 22:06:14 +01:00
data_validator.py Extract data validator to own file and add tests (#12401) 2018-02-14 21:06:03 +01:00
real_ip.py Cleanup http (#12424) 2018-02-15 22:06:14 +01:00
static.py Update aiohttp 2.3.10 / yarl 1.1.0 (#12244) 2018-02-08 20:57:05 -08:00