The Swoole\Http\Response class

(PECL swoole >= 1.9.0)

简介

类摘要

class Swoole\Http\Response {
/* 方法 */
public function cookie(
    string $name,
    string $value = ?,
    string $expires = ?,
    string $path = ?,
    string $domain = ?,
    string $secure = ?,
    string $httponly = ?
): string
public function __destruct(): void
public function end(string $content = ?): void
public function gzip(string $compress_level = ?): ReturnType
public function header(string $key, string $value, string $ucwords = ?): void
public function initHeader(): ReturnType
public function rawcookie(
    string $name,
    string $value = ?,
    string $expires = ?,
    string $path = ?,
    string $domain = ?,
    string $secure = ?,
    string $httponly = ?
): ReturnType
public function sendfile(string $filename, int $offset = ?): ReturnType
public function status(string $http_code): ReturnType
public function write(string $content): void
}

目录

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top