The Swoole\Http\Response class
(PECL swoole >= 1.9.0)
簡介
類摘要
class Swoole\Http\Response
{
/* 方法 */
public cookie(
string
string
string
string
string
string
string
): string
string
$name
,string
$value
= ?,string
$expires
= ?,string
$path
= ?,string
$domain
= ?,string
$secure
= ?,string
$httponly
= ?): string
public rawcookie(
string
string
string
string
string
string
string
): ReturnType
}string
$name
,string
$value
= ?,string
$expires
= ?,string
$path
= ?,string
$domain
= ?,string
$secure
= ?,string
$httponly
= ?): ReturnType
目錄
- Swoole\Http\Response::cookie — Set the cookies of the HTTP response.
- Swoole\Http\Response::__destruct — Destruct the HTTP response.
- Swoole\Http\Response::end — Send data for the HTTP request and finish the response.
- Swoole\Http\Response::gzip — Enable the gzip of response content.
- Swoole\Http\Response::header — Set the HTTP response headers.
- Swoole\Http\Response::initHeader — Init the HTTP response header.
- Swoole\Http\Response::rawcookie — Set the raw cookies to the HTTP response.
- Swoole\Http\Response::sendfile — Send file through the HTTP response.
- Swoole\Http\Response::status — Set the status code of the HTTP response.
- Swoole\Http\Response::write — Append HTTP body content to the HTTP response.