1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Http;
4:
5: use Psr\Http\Message\ResponseInterface;
6:
7: /**
8: * @api
9: */
10: interface HttpResponseInterface extends HttpMessageInterface, ResponseInterface
11: {
12: /**
13: * @return array{status:int,statusText:string,httpVersion:string,cookies:array<array{name:string,value:string,path?:string,domain?:string,expires?:string,httpOnly?:bool,secure?:bool}>,headers:array<array{name:string,value:string}>,content:array{size:int,mimeType:string,text:string},redirectURL:string,headersSize:int,bodySize:int}
14: */
15: public function jsonSerialize(): array;
16: }
17: