Changeset 45580 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 07/01/2019 08:00:12 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-http.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r45504 r45580 648 648 * @return array Array with 'headers' and 'body' keys. 649 649 */ 650 public static function processResponse( $strResponse ) { 650 public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 651 651 $res = explode( "\r\n\r\n", $strResponse, 2 ); 652 652 … … 670 670 * Then a numbered array is returned as the value of that header-key. 671 671 */ 672 public static function processHeaders( $headers, $url = '' ) { 672 public static function processHeaders( $headers, $url = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 673 673 // Split headers, one per array element. 674 674 if ( is_string( $headers ) ) { … … 753 753 * @param array $r Full array of args passed into ::request() 754 754 */ 755 public static function buildCookieHeader( &$r ) { 755 public static function buildCookieHeader( &$r ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 756 756 if ( ! empty( $r['cookies'] ) ) { 757 757 // Upgrade any name => value cookie pairs to WP_HTTP_Cookie instances. … … 789 789 * @return string Chunked decoded body on success or raw body on failure. 790 790 */ 791 public static function chunkTransferDecode( $body ) { 791 public static function chunkTransferDecode( $body ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid 792 792 // The body is not chunked encoded or is malformed. 793 793 if ( ! preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', trim( $body ) ) ) {
Note: See TracChangeset
for help on using the changeset viewer.