Requests_Response::__construct() WordPress Method

The Requests_Response::__construct() method is used to construct a new HTTP response object. This method is usually called by the Requests::request() method, but can also be called directly.

Requests_Response::__construct() #

Constructor


Source

File: wp-includes/Requests/Response.php

	public function __construct() {
		$this->headers = new Requests_Response_Headers();
		$this->cookies = new Requests_Cookie_Jar();
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.