- Removing getConfig() and setConfig() from clients to avoid confusion around
whether things like base_url, message_factory, etc should be able to be
retrieved from getConfig() or modified using setConfig().
- Adding getDefaults() and setDefaultValue() to customize default request
options of a client.
- Updating Url class to check if a scheme and host are set before adding
":" and "//". This allows empty Url (e.g., "") to be serialized as "".
- Removing dead code from Url class.
- Adding a functions.php function for get_path and set_path so that these
functions can be used on regular PHP arrays. Collection now proxies to these
functions when Collection::(get|set)Path() is called.
- Resolves#599.
- Changed GuzzleHttp\Event\SubscriberInterface::getSubscribedEvents from a
static method to an instance method.
- Renamed addSubscriber to attach.
- Renamed removeSubscriber to detach.
- Adding more docs and type information
- Defining how auth works and how to create custom auth schemes
- Removing custom auth stuff from the CurlFactory
- Adding more docs on error handling
- Tightening down the client interface to only allow RequestExceptions to be
thrown from a client during a send() method. This makes error handling much
easier and predictable.
- HTTP method based signatures like get(), put(), etc.. accept a URL,
and array of request options. createRequest() is similar but also requires
a method string.
- Renamed request events to 'before', 'complete', 'error', and 'headers.
- Renamed the associated event classes.
- Adding more docs.
- Instead of using a HeaderValues object for header values, I've added an
optional argument to getHeader() that specifies whether or not to return
a header as a string or an array.
- Adding the start of the new documentation.