Docs: Add more specific description for WP_Http::processResponse() return value.

Props marekdedic, takeshifurusato.
Fixes #48351.

git-svn-id: https://develop.svn.wordpress.org/trunk@47161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-02-02 03:25:57 +00:00
parent fd3083e3f5
commit 73e75195eb

View File

@ -651,7 +651,12 @@ class WP_Http {
* @since 2.7.0
*
* @param string $strResponse The full response string.
* @return array Array with 'headers' and 'body' keys.
* @return array {
* Array with response headers and body.
*
* @type string $headers HTTP response headers.
* @type string $body HTTP response body.
* }
*/
public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
$res = explode( "\r\n\r\n", $strResponse, 2 );