The Swoole\Http\Response class
(PECL swoole >= 1.9.0)
Introduction
Class synopsis
string
$name
,string
$value
= ?,string
$expires
= ?,string
$path
= ?,string
$domain
= ?,string
$secure
= ?,string
$httponly
= ?): string
string
$name
,string
$value
= ?,string
$expires
= ?,string
$path
= ?,string
$domain
= ?,string
$secure
= ?,string
$httponly
= ?): ReturnType
Table of Contents
- 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.