Files
pygeoapi/docs/source
Benjamin Webb 205ff3002c Add Gzip to response types (#795)
* Add gzip to API.py

* pytest for gzip

* fix pytest

* Update test_api.py

* Add gzip to server block of configuration files

* Update api.py to include gzip opts from config

Update logic behind gzip compression  such that compression will only happen when gzip in the Accept-Encoding request header and config.server.gzip is True. Use server charset for encoding/decoding and include charset in Content-Type when compressed.

* Update pytest to use gzip config options

Update pytest to test with (gzip in Accept-Encoding & server.gzip = False), (gzip in Accept-Encoding & server.gzip = True), (gzip not in Accept-Encoding & server.gzip = True)

* Better Content Negotiation (#7)

* Change content negotiation in _get_format()

* Add to pytest and force h to always be string

* Force F_JSON to default response

* Update test_api.py for utf-16 encoding

* better content negotiation pytest.

* Add comments to pytest

* Fix flake 8

* Improve docstring for gzip decorator function
2021-10-27 20:17:02 -04:00
..
2020-04-12 17:27:31 -04:00
2020-04-12 17:27:31 -04:00
2021-10-24 18:13:27 +03:00
2021-07-21 21:00:14 -04:00
2020-06-22 14:58:05 -04:00
2021-07-21 21:00:14 -04:00
2021-03-15 17:37:40 +02:00
2021-08-31 10:11:31 -04:00
2020-09-30 07:07:41 -04:00
2020-04-12 17:27:31 -04:00
2021-03-15 17:37:40 +02:00