Buzz v0.17.0 Release Notes

Release Date: 2018-03-26 // about 6 years ago
  • ➕ Added

    • The first argument to all client constructors is an array of options.
    • 🔧 A way to configure default options for a client: AbstractClient::configureOptions(OptionsResolver $resolver)
    • ➕ Added ParameterBag to store options.
    • ➕ Added BatchClientInterface::sendAsyncRequest(RequestInterface $request, array $options = []).
    • ➕ Added BuzzClientInterface::sendRequest(RequestInterface $request, array $options = []): ResponseInterface.
    • Ported all Listeners to Middleware.
    • ➕ Added options to configure the client as constructor argument and when you send a request.

    ✂ Removed (BC breaks)

    • ✂ Removed Request and Response
    • ✂ Removed AbstractStream.
    • ✂ Removed all listeners and ListenerInterface
    • ✂ Removed Curl::getInfo()
    • Client functions like AbstractClient::setIgnoreErrors(), AbstractClient::getIgnoreErrors(), AbstractClient::setMaxRedirects(), AbstractClient::getMaxRedirects(), AbstractClient::setTimeout(), AbstractClient::getTimeout(), AbstractClient::setVerifyPeer(), AbstractClient::getVerifyPeer(), AbstractClient::getVerifyHost(), AbstractClient::setVerifyHost(), AbstractClient::setProxy() and AbstractClient::getProxy().

    🔄 Changed (BC breaks)

    • 0️⃣ Redirects are not followed by default
    • ⚠ No exceptions are thrown and no warnings are triggered on a invalid response.
    • We only handle PSR requests and responses.
    • 💻 Renamed Browser::call($url, $method, $headers, $body) to Browser::request($method, $url, $headers, $body).