https://github.com/phpwebclient/ext-protocol-version
Auto change protocol version extension for PSR-18 HTTP client
https://github.com/phpwebclient/ext-protocol-version
http-protocol-manipulation http-protocol-version php php-http-client php-library
Last synced: about 1 month ago
JSON representation
Auto change protocol version extension for PSR-18 HTTP client
- Host: GitHub
- URL: https://github.com/phpwebclient/ext-protocol-version
- Owner: phpwebclient
- License: mit
- Created: 2020-07-04T07:42:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T14:41:16.000Z (over 3 years ago)
- Last Synced: 2024-12-10T10:14:00.975Z (about 1 year ago)
- Topics: http-protocol-manipulation, http-protocol-version, php, php-http-client, php-library
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/webclient/ext-protocol-version)
[](https://packagist.org/packages/webclient/ext-protocol-version/stats)
[](https://github.com/phpwebclient/ext-protocol-version/blob/master/LICENSE)
[](https://php.net)
# webclient/ext-protocol-version
Auto change protocol version extension for PSR-18 HTTP client.
# Install
Install this package and your favorite [psr-18 implementation](https://packagist.org/providers/psr/http-client-implementation).
```bash
composer require webclient/ext-protocol-version:^2.0
```
# Using
```php
sendRequest($request);
```
If server returns a 505 error, this client will repeat the request with the protocol version specified in the server response.