PHP Class Laravoole\Response

Show file Open project: acabin/laravoole

Public Properties

Property Type Description
$HTTP_HEADERS
$body
$cookie
$header
$http_protocol
$http_status
$request

Protected Properties

Property Type Description
$gzip_level
$protocol

Public Methods

Method Description
__construct ( $protocol, $request )
addHeaders ( array $header ) 添加http header
end ( $content )
getHeader ( $fastcgi = false )
gzip ( $level )
header ( $key, $value ) 设置Http头信�
noCache ( )
rawcookie ( $name, null $value = null, null $expire = null, string $path = '/', null $domain = null, null $secure = null, null $httponly = null ) 设置COOKIE
sendfile ( $file )
status ( $code ) 设置Http状�

Method Details

__construct() public method

public __construct ( $protocol, $request )

addHeaders() public method

添加http header
public addHeaders ( array $header )
$header array

end() public method

public end ( $content )

getHeader() public method

public getHeader ( $fastcgi = false )

gzip() public method

public gzip ( $level )

header() public method

设置Http头信�
public header ( $key, $value )
$key
$value

noCache() public method

public noCache ( )

rawcookie() public method

设置COOKIE
public rawcookie ( $name, null $value = null, null $expire = null, string $path = '/', null $domain = null, null $secure = null, null $httponly = null )
$name
$value null
$expire null
$path string
$domain null
$secure null
$httponly null

sendfile() public method

public sendfile ( $file )

status() public method

设置Http状�
public status ( $code )
$code

Property Details

$HTTP_HEADERS static public property

static public $HTTP_HEADERS

$body public property

public $body

$gzip_level protected property

protected $gzip_level

$header public property

public $header

$http_protocol public property

public $http_protocol

$http_status public property

public $http_status

$protocol protected property

protected $protocol

$request public property

public $request