[wp-trac] [WordPress Trac] #33055: Support Parallel HTTP Requests in WP_Http, et al
WordPress Trac
noreply at wordpress.org
Tue Apr 19 03:32:37 UTC 2016
#33055: Support Parallel HTTP Requests in WP_Http, et al
---------------------------------+-----------------------------
Reporter: wonderboymusic | Owner: rmccue
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: Future Release
Component: HTTP API | Version:
Severity: normal | Resolution:
Keywords: early needs-refresh | Focuses: performance
---------------------------------+-----------------------------
Comment (by rmccue):
Updated patch:
* Introduces `WP_HTTP_Requests_Response`, which acts as a backwards-
compatible return value with `ArrayAccess` while allowing access to the
underlying object.
* Uses a new `requests.before_redirect` hook to change POST to GET on a
302 redirect.
* Updates the tests to be less strict about type checking, as we're using
ArrayAccess objects rather than actual arrays
* Fixes the 304 test - 304 is not a redirect, it's a Not Modified
response. (It essentially means "redirect to internal cached")
* Moves `wp-includes/requests/*` up, so we now have `wp-includes/class-
requests.php` and `wp-includes/Requests/`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33055#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list