Guzzle v4.0.0.rc Release Notes
Release Date: 2014-03-25 // about 10 years ago-
- ✂ Removed
getConfig()
andsetConfig()
from clients to avoid confusion around whether things like base_url, message_factory, etc. should be able to be retrieved or modified. - ➕ Added
getDefaultOption()
andsetDefaultOption()
to ClientInterface - functions.php functions were renamed using snake_case to match PHP idioms
- Added support for
HTTP_PROXY
,HTTPS_PROXY
, andGUZZLE_CURL_SELECT_TIMEOUT
environment variables - ➕ Added the ability to specify custom
sendAll()
event priorities - ➕ Added the ability to specify custom stream context options to the stream adapter.
- Added a functions.php function for
get_path()
andset_path()
- CurlAdapter and MultiAdapter now use a callable to generate curl resources
- 🤡 MockAdapter now properly reads a body and emits a
headers
event - ⚡️ Updated Url class to check if a scheme and host are set before adding ":" and "//". This allows empty Url (e.g., "") to be serialized as "".
- ⚠ Parsing invalid XML no longer emits warnings
- Curl classes now properly throw AdapterExceptions
- 🐎 Various performance optimizations
- Streams are created with the faster
Stream\create()
function - 🗄 Marked deprecation_proxy() as internal
- ✅ Test server is now a collection of static methods on a class
- ✂ Removed