WordPress at a glance
function is not described

WP_HTTP_Requests_Response::__construct() public WP 4.6.0

Constructor.

{} It's a method of the class: WP_HTTP_Requests_Response{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 4.6.0 Introduced.

Code of WP_HTTP_Requests_Response::__construct() WP 5.7.2

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