Middleware: gzip compression

OpenSwoole's built-in http_compression is enabled by default in App::run(). The response below is ~2.7 KB raw but is sent as Content-Encoding: gzip when the client advertises it.

Your Accept-Encoding

gzip, br, zstd, deflate ✓ gzip supported

Response

Status
200 OK
Content-Encoding
gzip (depends on your Accept-Encoding)
Raw body size
≈ 2.7 KB