* Add clarification on redirects and PSR-18
Using ``GuzzleHttp\Client::sendRequest()`` ignores the `allow_redirects` configuration option. This is discussed in [#2584][0].
This is not reflected in the documentation.
[0]: https://github.com/guzzle/guzzle/issues/2584
* Update docs/request-options.rst
Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
* Robust handling of responses with invalid headers
Co-Authored-By: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
* Cleanup
Co-authored-by: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
* Test with guzzle/PSR7 2.0
* typo
* bugfix
* Allow dev packages
* Adding return type hints
* Test with the bleeding edge of guzzlehttp/psr7
* Test with stable/beta and dev.
* Test with dev-master for 1.x too
* Reorder.
* Dont test on beta
* Support the cURL (http://) scheme for StreamHandler proxies
* Remove 'proxy' workarounds in StreamHandlerTest
* Update documentation to use `http://` instead of `tcp://` for proxies
* Add StreamHandlerTest::testUsesProxy()
* Add CurlFactoryTest::testUsesProxy()
* Support setting truncate_body_at option for use by the http errors middleware
* Tweaked variable name
* Remove handler stack options
* Refactor to use an interface instead of a callable
* Removed unused imports
* Update Middleware.php
* Update MiddlewareTest.php
* Update Curl is_resource() to work with PHP 8 Curl(Multi)Handle objects
Updates `is_resource()` calls for curl handlers to properly work with PHP 8's `\CurlHandle` and `\CurlMultiHandle` objects.
See https://php.watch/versions/8.0/resource-CurlHandle
PHPDoc comments are updated to indicate that the variable/property can be either a resource or a Curl object.
* Updated baselines
Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
* Test on windows
* Update .github/workflows/ci.yml
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
* Use 3.0
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
* Handle exceptions during response creation
Catches exceptions thrown during the createResponse method of the easy handler to avoid crashes during the headers method.
* Add test with helper method on server.php to allow enqueing a raw response
* Fixing static analysis
* Fixing PHP-CS-Fixer issues
* Update Server.php
* Fixing PHP-CS-Fixer issues
* Updating Exception to match Guzzle Exception thrown
* Remove deprecated call to rejection_for()