ResponseInterface.php from hyperf/hyperf
// Source: https://github.com/hyperf/hyperf | License: MIT | Copyright Hyperf
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\HttpServer\Contract;
use Hyperf\Contract\Arrayable;
use Hyperf\Contract\Jsonable;
use Hyperf\Contract\Xmlable;
use Hyperf\HttpMessage\Cookie\Cookie;
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
use Stringable;
interface ResponseInterface
{
/**
* Format data to JSON and return data with Content-Type:application/json header.
*
* @param array|Arrayable|Jsonable
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key