examples/compression/README.md
This example shows how to:
accept header.cargo run -p example-compression
curl -v -g 'http://localhost:3000/' \
-H "Content-Type: application/json" \
-H "Content-Encoding: gzip" \
--compressed \
--data-binary @data/products.json.gz
(Notice the Content-Encoding: gzip in the request, and content-encoding: gzip in the response.)
curl -v -g 'http://localhost:3000/' \
-H "Content-Type: application/json" \
--compressed \
--data-binary @data/products.json