Used By
Used By | Description |
---|---|
wp-includes/class-wp-http-streams.php: WP_Http_Streams::request() | Send a HTTP request to a URI using PHP Streams. |
Parses the responses and splits the parts into headers and body.
(string) (Required) The full response string.
(array) Array with response headers and body.
File: wp-includes/class-http.php
public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid $res = explode( "\r\n\r\n", $strResponse, 2 ); return array( 'headers' => $res[0], 'body' => isset( $res[1] ) ? $res[1] : '', ); }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http/processresponse