PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 3.1.0
Defender Security – Malware Scanner, Login Security & Firewall v3.1.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / vendor / php-http / message-factory / src / ResponseFactory.php

ResponseFactory.php in Defender Security – Malware Scanner, Login Security & Firewall 3.1.0, at vendor/php-http/message-factory/src/ResponseFactory.php

36 lines 920 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
36