[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Http\Message; 4 5 use Psr\Http\Message\ResponseInterface; 6 use Psr\Http\Message\StreamInterface; 7 8 /** 9 * Factory for PSR-7 Response. 10 * 11 * This factory contract can be reused in Message and Server Message factories. 12 * 13 * @author Márk Sági-Kazár <[email protected]> 14 */ 15 interface ResponseFactory 16 { 17 /** 18 * Creates a new PSR-7 response. 19 * 20 * @param int $statusCode 21 * @param string|null $reasonPhrase 22 * @param array $headers 23 * @param resource|string|StreamInterface|null $body 24 * @param string $protocolVersion 25 * 26 * @return ResponseInterface 27 */ 28 public function createResponse( 29 $statusCode = 200, 30 $reasonPhrase = null, 31 array $headers = [], 32 $body = null, 33 $protocolVersion = '1.1' 34 ); 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |