Many API:s use different data formats for requests and responses. The upcoming patch will allow HttpClient to use different HttpClientFormatters for serialization and parsing.

As the number of configuration options for HttpClient has been growing I'm also introducing the option to pass a single configuration array instead of separate arguments, backwards compatibility is retained with the old-style parameter passing and the previous parameter ordering is also preserved.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hugo Wetterberg’s picture

And here's the patch

Hugo Wetterberg’s picture

Updated to set the accept-header correctly.

Hugo Wetterberg’s picture

Status: Needs review » Closed (fixed)

Fixed in 2.3