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.

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/class.swoole-http-response.php