Opened 15 years ago
Closed 15 years ago
#10670 closed enhancement (wontfix)
Refactor HTTP API
Reported by: | jacobsantos | Owned by: | jacobsantos |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | |
Focuses: | Cc: |
Description
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."
Closing due to no patch for now. If you ever have a patch to submit against it, please feel free to reopen.