File manager - Edit - /home/opticamezl/www/newok/message-factory.tar
Back
src/MessageFactory.php 0000604 00000000324 15173521463 0010762 0 ustar 00 <?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 { } src/StreamFactory.php 0000604 00000001057 15173521463 0010635 0 ustar 00 <?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); } src/UriFactory.php 0000604 00000000712 15173521463 0010136 0 ustar 00 <?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); } src/RequestFactory.php 0000604 00000001473 15173521463 0011034 0 ustar 00 <?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' ); } src/ResponseFactory.php 0000604 00000001630 15173521463 0011175 0 ustar 00 <?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' ); } puli.json 0000604 00000002571 15173521463 0006420 0 ustar 00 { "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" } } } } } LICENSE 0000604 00000002065 15173521463 0005557 0 ustar 00 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.
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings