File manager - Edit - /home/opticamezl/www/newok/message-factory.zip
Back
PK 5�\�B� � src/MessageFactory.phpnu &1i� <?php namespace Http\Message; /** * Factory for PSR-7 Request and Response. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ interface MessageFactory extends RequestFactory, ResponseFactory { } PK 5�\��/ / src/StreamFactory.phpnu &1i� <?php namespace Http\Message; use Psr\Http\Message\StreamInterface; /** * Factory for PSR-7 Stream. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ interface StreamFactory { /** * Creates a new PSR-7 stream. * * @param string|resource|StreamInterface|null $body * * @return StreamInterface * * @throws \InvalidArgumentException If the stream body is invalid. * @throws \RuntimeException If creating the stream from $body fails. */ public function createStream($body = null); } PK 5�\п�� � src/UriFactory.phpnu &1i� <?php namespace Http\Message; use Psr\Http\Message\UriInterface; /** * Factory for PSR-7 URI. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ interface UriFactory { /** * Creates an PSR-7 URI. * * @param string|UriInterface $uri * * @return UriInterface * * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI. */ public function createUri($uri); } PK 5�\��w�; ; src/RequestFactory.phpnu &1i� <?php namespace Http\Message; use Psr\Http\Message\UriInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\StreamInterface; /** * Factory for PSR-7 Request. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ interface RequestFactory { /** * Creates a new PSR-7 request. * * @param string $method * @param string|UriInterface $uri * @param array $headers * @param resource|string|StreamInterface|null $body * @param string $protocolVersion * * @return RequestInterface */ public function createRequest( $method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1' ); } PK 5�\�/�q� � src/ResponseFactory.phpnu &1i� <?php namespace Http\Message; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * Factory for PSR-7 Response. * * This factory contract can be reused in Message and Server Message factories. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ interface ResponseFactory { /** * Creates a new PSR-7 response. * * @param int $statusCode * @param string|null $reasonPhrase * @param array $headers * @param resource|string|StreamInterface|null $body * @param string $protocolVersion * * @return ResponseInterface */ public function createResponse( $statusCode = 200, $reasonPhrase = null, array $headers = [], $body = null, $protocolVersion = '1.1' ); } PK 5�\��(�y y puli.jsonnu &1i� { "version": "1.0", "binding-types": { "Http\\Message\\MessageFactory": { "description": "PSR-7 Message Factory", "parameters": { "depends": { "description": "Optional class dependency which can be checked by consumers" } } }, "Http\\Message\\RequestFactory": { "parameters": { "depends": { "description": "Optional class dependency which can be checked by consumers" } } }, "Http\\Message\\ResponseFactory": { "parameters": { "depends": { "description": "Optional class dependency which can be checked by consumers" } } }, "Http\\Message\\StreamFactory": { "description": "PSR-7 Stream Factory", "parameters": { "depends": { "description": "Optional class dependency which can be checked by consumers" } } }, "Http\\Message\\UriFactory": { "description": "PSR-7 URI Factory", "parameters": { "depends": { "description": "Optional class dependency which can be checked by consumers" } } } } } PK 5�\�^@5 5 LICENSEnu &1i� Copyright (c) 2015 PHP HTTP Team <team@php-http.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK 5�\�B� � src/MessageFactory.phpnu &1i� PK 5�\��/ / src/StreamFactory.phpnu &1i� PK 5�\п�� � � src/UriFactory.phpnu &1i� PK 5�\��w�; ; � src/RequestFactory.phpnu &1i� PK 5�\�/�q� � src/ResponseFactory.phpnu &1i� PK 5�\��(�y y � puli.jsonnu &1i� PK 5�\�^@5 5 � LICENSEnu &1i� PK :
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings