Guzzle v3.6.0 Release Notes

Release Date: 2013-05-29 // almost 11 years ago
    • ServiceDescription now implements ToArrayInterface
    • โž• Added command.hidden_params to blacklist certain headers from being treated as additionalParameters
    • ๐Ÿ“œ Guzzle can now correctly parse incomplete URLs
    • Mixed casing of headers are now forced to be a single consistent casing across all values for that header.
    • Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution
    • โœ‚ Removed the whole changedHeader() function system of messages because all header changes now go through addHeader().
    • Specific header implementations can be created for complex headers. When a message creates a header, it uses a HeaderFactory which can map specific headers to specific header classes. There is now a Link header and CacheControl header implementation.
    • โœ‚ Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate
    • โœ‚ Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti()
    • โœ‚ Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in Guzzle\Http\Curl\RequestMediator
    • โœ‚ Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string.
    • โœ‚ Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface
    • โœ‚ Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders()
    • โœ‚ Removed Guzzle\Parser\ParserRegister::get(). Use getParser()
    • โœ‚ Removed Guzzle\Parser\ParserRegister::set(). Use registerParser().
    • All response header helper functions return a string rather than mixing Header objects and strings inconsistently
    • โœ‚ Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle directly via interfaces
    • โœ‚ Removed the injecting of a request object onto a response object. The methods to get and set a request still exist but are a no-op until removed.
    • Most classes that used to require a Guzzle\Service\Command\CommandInterface typehint now request a Guzzle\Service\Command\ArrayCommandInterface.
    • โž• Added Guzzle\Http\Message\RequestInterface::startResponse() to the RequestInterface to handle injecting a response on a request while the request is still being transferred
    • The ability to case-insensitively search for header values
    • Guzzle\Http\Message\Header::hasExactHeader
    • Guzzle\Http\Message\Header::raw. Use getAll()
    • ๐Ÿ—„ Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object instead.
    • Guzzle\Service\Command\CommandInterface now extends from ToArrayInterface and ArrayAccess
    • โž• Added the ability to cast Model objects to a string to view debug information.