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
HttpClient
interface andHttpClientBuilder
, use these instead of the previousClient
class - Added gzip bomb protection (#208)
- Added
Request::removeAttributes()
- Added
ConditionalInterceptor
/IfOrigin
interceptor - Added
Response::getOriginalResponse()
- Added optional
$body
parameter toRequest::__construct()
- Allow
null
return inModifyRequest
/ModifyResponse
- Drop
content-encoding
header 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