On this page
WP_HTTP_Requests_Response::__construct( Requests_Response $response, string $filename = '' )
Constructor.
Parameters
$responseRequests_Response Required-
HTTP response.
$filenamestring Optional-
File name.
Default:
''
Source
File: wp-includes/class-wp-http-requests-response.php. View all references
public function __construct( Requests_Response $response, $filename = '' ) {
$this->response = $response;
$this->filename = $filename;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Http::request() wp-includes/class-wp-http.php | Send an HTTP request to a URI. |
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_requests_response/__construct