The Swoole\Http\Response class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

classSwoole\Http\Response {
publiccookie(
    string$name,
    string$value = ?,
    string$expires = ?,
    string$path = ?,
    string$domain = ?,
    string$secure = ?,
    string$httponly = ?
): string
public__destruct(): void
publicend(string$content = ?): void
publicgzip(string$compress_level = ?): ReturnType
publicheader(string$key, string$value, string$ucwords = ?): void
publicinitHeader(): ReturnType
publicrawcookie(
    string$name,
    string$value = ?,
    string$expires = ?,
    string$path = ?,
    string$domain = ?,
    string$secure = ?,
    string$httponly = ?
): ReturnType
publicsendfile(string$filename, int$offset = ?): ReturnType
publicstatus(string$http_code): ReturnType
publicwrite(string$content): void
}

Table of Contents

To Top