* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class MWP_Http_RedirectResponse extends MWP_Http_Response { public function __construct($url, $statusCode = 302, array $headers = array()) { $headers['location'] = $url; parent::__construct($url, $statusCode, $headers); } public function getContentAsString() { return sprintf('