wphooks.info - http_response

http_response

(trunk - 5.0-alpha-43293)

The hook occurs in the following 2 files

wp-includes/class-http.php:
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
		/**
		 * Filters the HTTP API response immediately before the response is returned.
		 *
		 * @since 2.9.0
		 *
		 * @param array  $response HTTP response.
		 * @param array  $r        HTTP request arguments.
		 * @param string $url      The request URL.
		 */
		return apply_filters( 'http_response', $response, $r, $url );
	}

	/**
	 * Normalizes cookies for using in Requests.
	 *
	 * @since 4.6.0
	 *
	 * @param array $cookies Array of cookies to send with the request.
	 * @return Requests_Cookie_Jar Cookie holder object.
wp-includes/class-http.php:
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
		$response = $transports[ $class ]->request( $url, $args );

		/** This action is documented in wp-includes/class-http.php */
		do_action( 'http_api_debug', $response, 'response', $class, $args, $url );

		if ( is_wp_error( $response ) ) {
			return $response;
		}

		/** This filter is documented in wp-includes/class-http.php */
		return apply_filters( 'http_response', $response, $args, $url );
	}

	/**
	 * Uses the POST HTTP method.
	 *
	 * Used for sending data that is expected to be in the body.
	 *
	 * @since 2.7.0
	 *