mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 22:28:25 +01:00
b558a2b1ef
* refactor: add missing response interface * feat(compress): adding compress helper * Apply suggestions from code review Co-authored-by: Jamie Barton <jamie@notrab.dev> * refactor: add brotli compress suggestion * revert brotli for now --------- Co-authored-by: Jamie Barton <jamie@notrab.dev>
364 B
364 B
Compress Example
This example demonstrates how to compress responses using gzip or deflate in Dumbo.
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Make a request
curl -H "Accept-Encoding: gzip" --compressed -i http://localhost:8000