The Swoole\Http\Response class
(PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Http\Response
{
/* 方法 */
public cookie
( string
$name
, string $value
= ?
, string $expires
= ?
, string $path
= ?
, string $domain
= ?
, string $secure
= ?
, string $httponly
= ?
) : string
public rawcookie
( 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.