PHP Class Voodoo\Core\Http\Response

Mostra file Open project: voodoophp/voodoo Class Usage Examples

Public Methods

Method Description
getHttpCode ( integer $code ) : string Get the HTTP Code
redirect ( $url, $httpCode = 302 )
setHeader ( string $data = "", integer $code ) Set headers
setStatus ( $code = 200 ) Set the status

Method Details

getHttpCode() public static method

Get the HTTP Code
public static getHttpCode ( integer $code ) : string
$code integer
return string

redirect() public static method

public static redirect ( $url, $httpCode = 302 )

setHeader() public static method

Set headers
public static setHeader ( string $data = "", integer $code )
$data string
$code integer

setStatus() public static method

Set the status
public static setStatus ( $code = 200 )