thruster/http-response

Thruster HttpResponse Component

0.2.0 2016-02-12 16:33 UTC

This package is auto-updated.

Last update: 2024-06-14 02:46:48 UTC


README

[Latest Version] (https://github.com/ThrusterIO/http-response/releases) [Software License] (LICENSE) [Build Status] (https://travis-ci.org/ThrusterIO/http-response) [Code Coverage] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [Quality Score] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [Total Downloads] (https://packagist.org/packages/thruster/http-response)

[Email] (mailto:team@thruster.io)

The Thruster HttpResponse Component.

Install

Via Composer

$ composer require thruster/http-response

Usage

use Thruster\Component\HttpResponse\ResponseBuilder;

$response = ResponseBuilder::init($response)->withJsonBody($data);
$response = ResponseBuilder::init($response)->withJsonBody($data, 'application/vnd.thruster+json');

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

License

Please see License File for more information.