Closed n0nag0n closed 3 months ago
This will allow you to minify, gzip, whatever you'd like to do with the response body.
Flight::response()->addResponseBodyCallback(function($body) { return gzencode($body, 9); });
Added documentation here. https://docs.flightphp.com/learn/responses#running-a-callback-on-the-response-body
This will allow you to minify, gzip, whatever you'd like to do with the response body.