WP_HTTP_Requests_Response::__construct()publicWP 4.6.0

Constructor.

Method of the class: WP_HTTP_Requests_Response{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_HTTP_Requests_Response = new WP_HTTP_Requests_Response();
$WP_HTTP_Requests_Response->__construct( $response, $filename );
$response(\WpOrg\Requests\Response) (required)
HTTP response.
$filename(string)
File name.
Default: ''

Changelog

Since 4.6.0 Introduced.

WP_HTTP_Requests_Response::__construct() code WP 6.5.3

public function __construct( WpOrg\Requests\Response $response, $filename = '' ) {
	$this->response = $response;
	$this->filename = $filename;
}