4.0.0 RC7
Pre-release
Pre-release
Note: This is a pre-release, there might be breaking changes in the final stable version.
- Added
HttpClientinterface andHttpClientBuilder, use these instead of the previousClientclass - Added gzip bomb protection (#208)
- Added
Request::removeAttributes() - Added
ConditionalInterceptor/IfOrigininterceptor - Added
Response::getOriginalResponse() - Added optional
$bodyparameter toRequest::__construct() - Allow
nullreturn inModifyRequest/ModifyResponse - Drop
content-encodingheader on decompression (#207) - Use pings to test HTTP/2 connection liveness
- Improved request cloning
- Disallow user info in URIs by default
- Validate response protocol version
- Assign default reason phrase if none is provided
- Removed
Response::setReason(), useResponse::setStatus()with its second parameter instead