This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
redir/includes/kohana/system/classes/Kohana/HTTP/Response.php

31 lines
861 B
PHP
Raw Permalink Normal View History

2013-04-13 06:17:56 +00:00
<?php defined('SYSPATH') OR die('No direct script access.');
2011-07-20 12:57:07 +00:00
/**
* A HTTP Reponse specific interface that adds the methods required
* by HTTP responses. Over and above [Kohana_HTTP_Interaction], this
* interface provides status.
*
* @package Kohana
* @category HTTP
* @author Kohana Team
* @since 3.1.0
2013-04-13 06:17:56 +00:00
* @copyright (c) 2008-2012 Kohana Team
2011-07-20 12:57:07 +00:00
* @license http://kohanaphp.com/license
*/
2013-04-13 06:17:56 +00:00
interface Kohana_HTTP_Response extends HTTP_Message {
2011-07-20 12:57:07 +00:00
/**
* Sets or gets the HTTP status from this response.
*
* // Set the HTTP status to 404 Not Found
* $response = Response::factory()
* ->status(404);
*
* // Get the current status
* $status = $response->status();
*
* @param integer $code Status to set to this response
* @return mixed
*/
public function status($code = NULL);
}