[] (https://github.com/ThrusterIO/http-response/releases) [] (LICENSE) [] (https://travis-ci.org/ThrusterIO/http-response) [] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [] (https://packagist.org/packages/thruster/http-response)
The Thruster HttpResponse Component.
Via Composer
$ composer require thruster/http-response
use Thruster\Component\HttpResponse\ResponseBuilder;
$response = ResponseBuilder::init($response)->withJsonBody($data);
$response = ResponseBuilder::init($response)->withJsonBody($data, 'application/vnd.thruster+json');
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
Please see License File for more information.