PHP Class Swoole\Response

显示文件 Open project: matyhtf/swoole_framework Class Usage Examples

Public Properties

Property Type Description
$HTTP_HEADERS
$body
$cookie
$head
$http_protocol
$http_status

Public Methods

Method Description
addHeaders ( array $header ) 添加http header
getHeader ( $fastcgi = false )
noCache ( )
setHeader ( $key, $value ) 设置Http头信息
setHttpStatus ( $code ) 设置Http状态
setcookie ( $name, null $value = null, null $expire = null, string $path = '/', null $domain = null, null $secure = null, null $httponly = null ) 设置COOKIE

Method Details

addHeaders() public method

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

getHeader() public method

public getHeader ( $fastcgi = false )

noCache() public method

public noCache ( )

setHeader() public method

设置Http头信息
public setHeader ( $key, $value )
$key
$value

setHttpStatus() public method

设置Http状态
public setHttpStatus ( $code )
$code

setcookie() public method

设置COOKIE
public setcookie ( $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

Property Details

$HTTP_HEADERS static_oe public_oe property

static public $HTTP_HEADERS

$body public_oe property

public $body

$head public_oe property

public $head

$http_protocol public_oe property

public $http_protocol

$http_status public_oe property

public $http_status