All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Symfony 5 support
- HHVM support removed.
- Minimal PHP version changed to 7.1.
Client::__construct
now expects PSR-17 factories instead of HTTPlug ones.
- #36: Failure evaluating code: is_resource($handle) (string assertions are deprecated in PHP 7.2)
- #30: Make sure we rewind streams
- #29: Request not using CURLOPT_POSTFIELDS have content-length set to
- Use binary mode to create response body stream.
- #27: ErrorPlugin and sendAsyncRequest() incompatibility
Client::sendRequest
now throwsHttp\Client\Exception\NetworkException
on network errors.\UnexpectedValueException
replaced withHttp\Client\Exception\RequestException
inClient::sendRequest
andClient::sendAsyncRequest
- #26: Combining CurlClient with StopwatchPlugin causes Promise onRejected handler to never be invoked.
- Request body can be send with any method except GET, HEAD and TRACE.
- #25: Make discovery a hard dependency.
- #23: "php-http/async-client-implementation" added to "provide" section.
- #22: Cannot create the client using
HttpClientDiscovery
.
- #20: Minimize memory usage when reading large response body.
- #18: Invalid "Expect" header.
- #13: Remove HeaderParser.
- #16: Make sure discovery can find the curl client
- #15: "Out of memory" sending large files.
- Switch to php-http/message 1.0.
First stable release.
- Migrate from
php-http/discovery
andphp-http/utils
tophp-http/message
.
- Root namespace changed from
Http\Curl
toHttp\Client\Curl
. - Main client class name renamed from
CurlHttpClient
toClient
. - Minimum required php-http/discovery version changed to 0.5.
- Compatibility with php-http/httplug 1.0 beta
- Switch to php-http/discovery 0.4
- Switch to php-http/message-factory 1.0
- Requirements fixed.
- Use cURL constants as options keys.
- HttpAsyncClient support.
- Initial release