thruster / http-response
Thruster HttpResponse 组件
0.2.0
2016-02-12 16:33 UTC
Requires
- php: >=7.0
- thruster/http-message: ^1.1
Requires (Dev)
- phpunit/phpunit: ~5.1
This package is auto-updated.
Last update: 2024-09-14 03:21:21 UTC
README
[] (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.cn/packages/thruster/http-response)
Thruster HttpResponse 组件。
安装
通过 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
贡献
请参阅CONTRIBUTING 和 CONDUCT 以获取详细信息。
许可
请参阅许可文件以获取更多信息。