Imam Ali Mustofa b558a2b1ef
feat: dumbo compress helper (#38)
* 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>
2024-09-04 14:16:46 +01:00
..
2024-09-04 14:16:46 +01:00
2024-09-04 14:16:46 +01:00

Compress Example

This example demonstrates how to compress responses using gzip or deflate in Dumbo.

Running the Example

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. Make a request

     curl -H "Accept-Encoding: gzip" --compressed -i http://localhost:8000