The change log shows what have been Added, Changed, Deprecated and Removed between versions.
- ClientInterface supports PSR7 requests and responses.
- Removed type hint for second parameter for
AbstractCurl::prepare
. - Removed type hint for second parameter for
RequestException::setRequest
. - Removed type hint for first parameter for
AbstractStream::getStreamContextArray
. RequestException
supports both PSR-7 requests and Buzz requests.Response::getProtocolVersion
will return a string and not a float.- Using PHPUnit namespaces.
- Added Request and Response converters
- Added
Curl::sendRequest()
,MultiCurl::sendRequest()
andFileGetContents::sendRequest()
that supports sending PSR-7 requests. - Added
Browser::sendRequest()
that supports middlewares. - Added
MiddlewareInterface
andBrowser::addMiddleware()
. - Added
HeaderConverter
to convert between PSR-7 styled headers and Buzz styled headers.
Curl::send()
,MultiCurl::send()
andFileGetContents::send()
in favor for*::sendRequest()
.AbstractCurl::populateResponse()
was deprecated in favor ofAbstractCurl::createResponse()
.
- Support for PHP 5.3.
- A
.gitattributes
was added to exclude test files and metadata.
- The reason phrase is allowed to be empty.
MultiCurl
will throw exception when request fails. This makesMultiCurl
to have the same behavior asCurl
andFileGetContents
. (Liskov Substitution Principle)
- Added
BearerAuthListener
- We use PSR-4 instead of PSR-0
- Moved cookie jar implementation from
FileGetContents
client to a browser listener - Added
DigestAuthListener
- Changed default HTTP protocol version to 1.1
- Added verify host control to
AbstractClient