1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Http\Message; |
4: | |
5: | use Psr\Http\Message\ResponseInterface as PsrResponseInterface; |
6: | |
7: | /** |
8: | * @api |
9: | * |
10: | * @extends MessageInterface<PsrResponseInterface> |
11: | */ |
12: | interface ResponseInterface extends |
13: | MessageInterface, |
14: | PsrResponseInterface |
15: | { |
16: | /** |
17: | * @inheritDoc |
18: | * |
19: | * @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} |
20: | */ |
21: | public function jsonSerialize(): array; |
22: | } |
23: |