WP_HTTP_Requests_Response::__construct( Requests_Response $response, string $filename = '' )

Constructor.


Parameters

$response

(Required) HTTP response.

$filename

(Optional) File name.

Default value: ''


Source

File: wp-includes/class-wp-http-requests-response.php

	public function __construct( Requests_Response $response, $filename = '' ) {
		$this->response = $response;
		$this->filename = $filename;
	}


Changelog

Changelog
Version Description
WP-4.6.0 Introduced.