One Hat Cyber Team
Your IP:
216.73.216.42
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
self
/
root
/
home
/
fluxyjvi
/
www
/
assets
/
images
/
Edit File:
message-factory.tar
src/MessageFactory.php 0000644 00000000535 15107366365 0010777 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> * * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface and Psr\Http\Message\ResponseFactoryInterface instead. */ interface MessageFactory extends RequestFactory, ResponseFactory { } src/ResponseFactory.php 0000644 00000001764 15107366365 0011216 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> * * @deprecated since version 1.1, use Psr\Http\Message\ResponseFactoryInterface instead. */ 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' ); } src/StreamFactory.php 0000644 00000001206 15107366365 0010642 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> * * @deprecated since version 1.1, use Psr\Http\Message\StreamFactoryInterface instead. */ 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/RequestFactory.php 0000644 00000001626 15107366366 0011046 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> * * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead. */ 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/UriFactory.php 0000644 00000001040 15107366366 0010143 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> * * @deprecated since version 1.1, use Psr\Http\Message\UriFactoryInterface instead. */ 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); } README.md 0000644 00000002634 15107366366 0006045 0 ustar 00 # PSR-7 Message Factory [](https://github.com/php-http/message-factory/releases) [](LICENSE) [](https://packagist.org/packages/php-http/message-factory) **Factory interfaces for PSR-7 HTTP Message.** ## Obsolete The PHP-HTTP factories have become obsolete with the [PSR-17](https://www.php-fig.org/psr/psr-17/) factories standard. All major HTTP client implementors provide [PSR-17 factories](https://packagist.org/packages/psr/http-factory). This package will remain available for the time being to not break legacy code, but we encourage everybody to move to PSR-17. ## Install Via Composer ``` bash $ composer require php-http/message-factory ``` ## Documentation Please see the [official documentation](http://docs.php-http.org/en/latest/message/message-factory.html). ## Contributing Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). ## Security If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). ## License The MIT License (MIT). Please see [License File](LICENSE) for more information. LICENSE 0000644 00000002072 15107366366 0005567 0 ustar 00 Copyright (c) 2015-2016 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. puli.json 0000644 00000002641 15107366366 0006430 0 ustar 00 { "version": "1.0", "name": "php-http/message-factory", "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" } } } } } composer.json 0000644 00000001204 15107366366 0007300 0 ustar 00 { "name": "php-http/message-factory", "description": "Factory interfaces for PSR-7 HTTP Message", "license": "MIT", "keywords": ["http", "factory", "message", "stream", "uri"], "homepage": "http://php-http.org", "authors": [ { "name": "Márk Sági-Kazár", "email": "mark.sagikazar@gmail.com" } ], "require": { "php": ">=5.4", "psr/http-message": "^1.0 || ^2.0" }, "autoload": { "psr-4": { "Http\\Message\\": "src/" } }, "extra": { "branch-alias": { "dev-master": "1.x-dev" } } } CHANGELOG.md 0000644 00000002054 15107366367 0006374 0 ustar 00 # Change Log ## 1.1.0 - 2023-04-14 ### Changed - Allow `psr/http-message` v2 in addition to v1 - Deprecate all interfaces in favor of [PSR-17](https://www.php-fig.org/psr/psr-17/) ## 1.0.2 - 2015-12-19 ### Added - Request and Response factory binding types to Puli ## 1.0.1 - 2015-12-17 ### Added - Puli configuration and binding types ## 1.0.0 - 2015-12-15 ### Added - Response Factory in order to be reused in Message and Server Message factories - Request Factory ### Changed - Message Factory extends Request and Response factories ## 1.0.0-RC1 - 2015-12-14 ### Added - CS check ### Changed - RuntimeException is thrown when the StreamFactory cannot write to the underlying stream ## 0.3.0 - 2015-11-16 ### Removed - Client Context Factory - Factory Awares and Templates ## 0.2.0 - 2015-11-16 ### Changed - Reordered the parameters when creating a message to have the protocol last, as its the least likely to need to be changed. ## 0.1.0 - 2015-06-01 ### Added - Initial release ### Changed - Helpers are renamed to templates CONTRIBUTING 0000644 00000000114 15107366367 0006410 0 ustar 00 Please see http://docs.php-http.org/en/latest/development/contributing.html
Simpan