(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
Synopsis de la classe
Swoole\Http\Response
{
public string cookie
(
string $name
[,
string $value
[,
string $expires
[,
string $path
[,
string $domain
[,
string $secure
[,
string $httponly
]]]]]] )
public void end
([
string $content
] )
public ReturnType gzip
([
string $compress_level
] )
public void header
(
string $key
,
string $value
[,
string $ucwords
] )
public ReturnType rawcookie
(
string $name
[,
string $value
[,
string $expires
[,
string $path
[,
string $domain
[,
string $secure
[,
string $httponly
]]]]]] )
public ReturnType sendfile
(
string $filename
[,
int $offset
] )
public ReturnType status
(
string $http_code
)
public void write
(
string $content
)
}