Currently, if an active plugin hooks into pre_http_request and returns a truthy value, then WP_Http::request() will return before applying http_api_debug. As a result, Plugin::capture_request_response() will not be called it's hooked to http_api_debug.
I think we can also hook into pre_http_request and do the capture there, but it will take some investigation to make sure that works correctly (i.e., I'll need to find a "real world" example of something hooking into pre_http_request to short circuit the request).
Currently, if an active plugin hooks into pre_http_request and returns a truthy value, then WP_Http::request() will return before applying http_api_debug. As a result,
Plugin::capture_request_response()will not be called it's hooked tohttp_api_debug.I think we can also hook into
pre_http_requestand do the capture there, but it will take some investigation to make sure that works correctly (i.e., I'll need to find a "real world" example of something hooking intopre_http_requestto short circuit the request).