PHP Conference Japan 2024

Swoole\Http\Response 类

(PECL swoole >= 1.9.0)

简介

类概要

Swoole\Http\Response {
/* 方法 */
public cookie(
    字符串 $name,
    字符串 $value = ?,
    字符串 $expires = ?,
    字符串 $path = ?,
    字符串 $domain = ?,
    字符串 $secure = ?,
    字符串 $httponly = ?
): 字符串
public __destruct(): 空值
public end(字符串 $content = ?): 空值
public gzip(字符串 $compress_level = ?): 返回值类型
public header(字符串 $key, 字符串 $value, 字符串 $ucwords = ?): 空值
public initHeader(): 返回值类型
public rawcookie(
    字符串 $name,
    字符串 $value = ?,
    字符串 $expires = ?,
    字符串 $path = ?,
    字符串 $domain = ?,
    字符串 $secure = ?,
    字符串 $httponly = ?
): 返回值类型
public sendfile(字符串 $filename, 整数 $offset = ?): 返回值类型
public status(字符串 $http_code): 返回值类型
public write(字符串 $content): 空值
}

目录

添加注释

用户贡献的注释

此页面没有用户贡献的注释。
To Top