Refactor HTTP API
|Reported by:||jacobsantos||Owned by:||jacobsantos|
I looked at the code base and it seems that the WP_Http class is of need of refactoring. The goal is to allow for the arguments in the request method to be used within any transport separately of the main WP_Http class.
It overhauls the request and headers, creating at least two new classes for managing both respectively. Backwards compatibility will be maintained even though, people shouldn't be calling the main classes, the API has already been established and supporting the API won't be difficult and time consuming from the changes.
The change will also allow for replacing or extending the code to allow for a plugin to replace the code base. It is debatable whether anyone will do this or if this should be one of the "features."