PHP Class Swoole\Response

Afficher le fichier Open project: matyhtf/swoole_framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$HTTP_HEADERS
$body
$cookie
$head
$http_protocol
$http_status

Méthodes publiques

Méthode 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 méthode

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

getHeader() public méthode

public getHeader ( $fastcgi = false )

noCache() public méthode

public noCache ( )

setHeader() public méthode

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

setHttpStatus() public méthode

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

setcookie() public méthode

设置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